Skip to content

Commit

Permalink
🌈 style: don't display 404 error in lists
Browse files Browse the repository at this point in the history
  • Loading branch information
shurco committed Jul 5, 2024
1 parent 765f367 commit 54e9f19
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/pages/profile/keys/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const getData = async (routeQuery: any): Promise<void> => {
pageData.value.base = res.data.result;
}
if (res.error) {
showApiError(res.error);
showApiError(res.error, [404]);
}
} catch (err) {
console.error("Unexpected error:", err);
Expand Down
2 changes: 1 addition & 1 deletion src/pages/projects/_projectId/members/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const getData = async (routeQuery: any): Promise<void> => {
pageData.value.base = res.data.result;
}
if (res.error) {
showApiError(res.error);
showApiError(res.error, [404]);
}
} catch (err) {
console.error("Unexpected error:", err);
Expand Down
2 changes: 1 addition & 1 deletion src/pages/projects/_projectId/members/invites.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const getData = async (routeQuery: any): Promise<void> => {
pageData.value.base = res.data.result;
}
if (res.error) {
showApiError(res.error);
showApiError(res.error, [404]);
}
} catch (err) {
console.error("Unexpected error:", err);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const getData = async (routeQuery: any): Promise<void> => {
pageData.value.base = res.data.result;
}
if (res.error) {
showApiError(res.error);
showApiError(res.error, [404]);
}
} catch (err) {
console.error("Unexpected error:", err);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const getData = async (routeQuery: any): Promise<void> => {
pageData.value.base = res.data.result;
}
if (res.error) {
showApiError(res.error);
showApiError(res.error, [404]);
}
} catch (err) {
console.error("Unexpected error:", err);
Expand Down
2 changes: 1 addition & 1 deletion src/pages/projects/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const getData = async (routeQuery: any): Promise<void> => {
pageData.value.base = res.data.result;
}
if (res.error) {
showApiError(res.error);
showApiError(res.error, [404]);
}
} catch (err) {
console.error("Unexpected error:", err);
Expand Down

0 comments on commit 54e9f19

Please sign in to comment.