Skip to content

Commit

Permalink
fix unit test failed
Browse files Browse the repository at this point in the history
Signed-off-by: andy.lee <[email protected]>
  • Loading branch information
a110605 committed Aug 14, 2024
1 parent 9c9a821 commit 2c50eb2
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions pkg/harvester/edit/harvesterhci.io.schedulevmbackup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import CruResource from '@shell/components/CruResource';
import Tabbed from '@shell/components/Tabbed';
import Tab from '@shell/components/Tabbed/Tab';
import MessageLink from '@shell/components/MessageLink';
import Checkbox from '@components/Form/Checkbox/Checkbox';
import LabeledSelect from '@shell/components/form/LabeledSelect';
import CreateEditView from '@shell/mixins/create-edit-view';
import { isCronValid } from '@shell/utils/validators/cron-schedule';
Expand All @@ -20,7 +19,6 @@ import { _EDIT, _CREATE } from '@shell/config/query-params';
export default {
name: 'CreateVMSchedule',
components: {
Checkbox,
CruResource,
Tabbed,
Tab,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export default {
</div>
</div>
<Banner
v-if="value?.volumeBackups?.error?.message"
v-if="value.volumeBackups && value.volumeBackups.error && value.volumeBackups.error.message"
color="error"
class="mb-20"
:label="value.volumeBackups.error.message"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ export default {
</div>
</div>
<Banner
v-if="value?.volumeBackups?.error?.message"
v-if="value.volumeBackups && value.volumeBackups.error && value.volumeBackups.error.message"
color="error"
class="mb-20"
:label="value.volumeBackups.error.message"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ export default {
</div>
</div>
<Banner
v-if="value?.volumeBackups?.error?.message"
v-if="value.volumeBackups && value.volumeBackups.error && value.volumeBackups.error.message"
color="error"
class="mb-20"
:label="value.volumeBackups.error.message"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ export default {
</div>
</div>
<Banner
v-if="value?.volumeBackups?.error?.message"
v-if="value.volumeBackups && value.volumeBackups.error && value.volumeBackups.error.message"
color="error"
class="mb-20"
:label="value.volumeBackups.error.message"
Expand Down

0 comments on commit 2c50eb2

Please sign in to comment.