Skip to content

Commit

Permalink
Merge pull request #12237 from rak-phillip/bugfix/12219-fetch-errors
Browse files Browse the repository at this point in the history
Prevent `fetch` when navigating on pages that contain `ResourceDetail`
  • Loading branch information
rak-phillip authored Oct 14, 2024
2 parents 49829da + f417bb3 commit b574979
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion shell/components/ResourceDetail/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,11 @@ export default {
const queryDiff = Object.keys(diff(neu, old));
if ( queryDiff.includes(MODE) || queryDiff.includes(AS)) {
if (Object.keys(neu).length <= 0) {
return;
}
if (queryDiff.includes(MODE) || queryDiff.includes(AS)) {
this.$fetch();
}
},
Expand Down

0 comments on commit b574979

Please sign in to comment.