fix undefined check on eks v2

rancher/rancher#31048
This commit is contained in:
Westly Wright 2021-01-29 08:41:12 -07:00
parent d982d170fd
commit 83af50577f
No known key found for this signature in database
GPG Key ID: 4FAB3D8673DC54A3
1 changed files with 2 additions and 2 deletions

View File

@ -392,8 +392,8 @@ export default Component.extend(ClusterDriver, {
importedClusterIsPending: computed('clusterIsPending', 'model.originalCluster', function() {
const { clusterIsPending } = this;
const originalCluster = get(this, 'model.originalCluster');
const ourClusterSpec = get(originalCluster, 'eksConfig');
const upstreamSpec = get(originalCluster, 'eksStatus.upstreamSpec');
const ourClusterSpec = get(( originalCluster ?? {} ), 'eksConfig');
const upstreamSpec = get(( originalCluster ?? {} ), 'eksStatus.upstreamSpec');
return clusterIsPending && get(ourClusterSpec, 'imported') && !isEmpty(upstreamSpec);
}),