1
0
mirror of https://github.com/elk-zone/elk synced 2024-11-27 22:38:11 +09:00

chore: fix build

This commit is contained in:
Anthony Fu 2022-11-27 15:05:17 +08:00
parent b8e68b106a
commit 342783eecc

View File

@ -58,7 +58,8 @@ function createSuggestionRenderer(): SuggestionOptions['render'] {
})
},
onBeforeUpdate(props) {
// Use arrow function here because Nuxt will transform it incorrectly as Vue hook causing the build to fail
onBeforeUpdate: (props) => {
component.updateProps({ ...props, isPending: true })
},