Skip to content

Commit

Permalink
- don't call validate before component is rendered (fixes unit test w…
Browse files Browse the repository at this point in the history
…arnings)
  • Loading branch information
Severin Beauvais committed Sep 13, 2024
1 parent 1bb16aa commit 27ba5da
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export default class LimitedRestorationPanel extends Vue {
if (this.radioValue === 'customMonths') {
// wait for component updates then validate the input field
await this.$nextTick()
const valid = this.$refs.monthsRef.validate()
const valid = this.$refs.monthsRef?.validate()
// emit months and validity
this.emitMonths(valid ? +this.inputValue : null) // emit null if invalid
Expand Down

0 comments on commit 27ba5da

Please sign in to comment.