Skip to content

Commit

Permalink
fix backuptarget is empty
Browse files Browse the repository at this point in the history
(cherry picked from commit 0a9ca16)
  • Loading branch information
WuJun2016 committed Sep 6, 2023
1 parent 1b29a6f commit 809de08
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkg/harvester/formatters/HarvesterBackupTargetValidation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ export default {
const harvesterSettings = this.$store.getters['harvester/all'](HCI.SETTING) || [];
const resource = harvesterSettings.find( V => V.id === 'backup-target');
return this.value === resource?.parseValue?.endpoint;
let isMatch = false;
try {
isMatch = this.value === resource?.parseValue?.endpoint;
} catch (e) {}
return isMatch;
}
}
};
Expand Down

0 comments on commit 809de08

Please sign in to comment.