Skip to content

Commit 5d4328f

Browse files
fix onUnmounted hook destroy
1 parent eca9325 commit 5d4328f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ export default defineComponent({
191191
expose?.({ jsonEditor })
192192

193193
onUnmounted(() => {
194-
jsonEditor.value.destroy()
194+
jsonEditor.value?.destroy()
195195
})
196196

197197
onMounted(() => {

0 commit comments

Comments
 (0)