catch error

pull/5370/head
filip mertens 11 months ago
parent f859c768c3
commit 315debee4a
  1. 7
      libs/remix-ui/home-tab/src/lib/components/homeTabFile.tsx

@ -82,8 +82,11 @@ function HomeTabFile({ plugin }: HomeTabFileProps) {
deleteSavedWorkspace(deletedName)
})
return () => {
plugin.off('filePanel', 'setWorkspace')
plugin.off('filePanel', 'workspaceDeleted')
try {
plugin.off('filePanel', 'setWorkspace')
plugin.off('filePanel', 'workspaceDeleted')
} catch (e) {
}
}
}, [plugin])

Loading…
Cancel
Save