Datatable - swallow exceptions on desroy

This commit is contained in:
Michael Shanks 2020-02-24 14:59:23 +00:00
parent d3f8dec449
commit 0cb9312e75
1 changed files with 5 additions and 1 deletions

View File

@ -30,7 +30,11 @@
onMount(() => {
return () => {
!!instance && instance.destroy()
try {
!!instance && instance.destroy()
} catch(e) {
console.log(e)
}
instance = null
}
})