Skip to content

Commit

Permalink
Merge pull request #11449 from richard-cox/fix-count-getter
Browse files Browse the repository at this point in the history
Ensure count shown in side nav is correct
  • Loading branch information
richard-cox committed Jul 17, 2024
2 parents 2fdd3be + b34a57c commit 80db8ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell/plugins/dashboard-store/getters.js
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ export default {
};
}

const namespaces = _typeObj?.namespaced ? Object.keys(rootGetters.activeNamespaceCache || {}) : [];
const namespaces = _typeObj?.namespaced && !rootGetters.isAllNamespaces ? Object.keys(rootGetters.activeNamespaceCache || {}) : [];

return matchingCounts(_typeObj, namespaces.length ? namespaces : null);
},
Expand Down

0 comments on commit 80db8ca

Please sign in to comment.