mirror of
https://github.com/argoproj/argo-cd
synced 2026-05-24 09:50:08 +00:00
fix: prevent 'cannot read property "filter" of undefined' during nodes filtering (#6453)
Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
This commit is contained in:
parent
2da0e81b05
commit
fba25d8229
1 changed files with 1 additions and 1 deletions
|
|
@ -119,7 +119,7 @@ export function compareNodes(first: ResourceTreeNode, second: ResourceTreeNode)
|
|||
return Math.sign(numberA - numberB);
|
||||
}
|
||||
function getRevision(a: ResourceTreeNode) {
|
||||
const filtered = a.info.filter(b => b.name === 'Revision' && b)[0];
|
||||
const filtered = (a.info || []).filter(b => b.name === 'Revision' && b)[0];
|
||||
if (filtered == null) {
|
||||
return '';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue