Skip to content

Commit

Permalink
fix: error when visiting non-existent probes
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinKolarik committed Oct 29, 2024
1 parent c17b48f commit d46379a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pages/probes.vue
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,12 @@
probeDetails.value = probe;
} catch (e) {
const response = (e as { response?: Response } | undefined)?.response;
if (response?.status === 403) {
return navigateTo('/probes');
}
sendErrorToast(e);
}
};
Expand Down

0 comments on commit d46379a

Please sign in to comment.