Skip to content

Commit

Permalink
Fix: token search ref is undefined (#538)
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky authored Jul 18, 2023
1 parent 42ef806 commit 36166e8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/schema/schemaForm/approve/TokenAddDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,14 @@ export default {
this.$emit('tokenAdded', {type: 2, value: this.fa2, typeName: 'FA2'})
}
}
this.$refs.tokenSearchField.reset();
const interval = setInterval(() => {
if (this.$refs.tokenSearchField) {
this.$refs.tokenSearchField.reset();
clearInterval(interval)
}
}, 50)
},
onCancel() {
this.show = false;
Expand Down

0 comments on commit 36166e8

Please sign in to comment.