Merge pull request #9714 from torchiaf/9665-provissioning-actions-error

Fix 'Scale Down' crash in cluster provisioning details page
This commit is contained in:
Richard Cox 2023-09-28 16:06:56 +01:00 committed by GitHub
commit df9c4be595
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 6 deletions

View File

@ -806,7 +806,7 @@ export default {
return false;
}
const matchingResourceAction = resource.availableActions.find((a) => a.action === this.actionOfInterest.action);
const matchingResourceAction = resource.availableActions?.find((a) => a.action === this.actionOfInterest.action);
return matchingResourceAction?.enabled;
},

View File

@ -342,6 +342,7 @@ export default {
poolId: pool.id,
mainRowKey: 'isFake',
pool,
availableActions: []
};
});
},
@ -364,6 +365,7 @@ export default {
spec: { nodePoolName: np.id.replace('/', ':') },
mainRowKey: 'isFake',
pool: np,
availableActions: []
}));
},