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) deleteSavedWorkspace(deletedName)
}) })
return () => { return () => {
plugin.off('filePanel', 'setWorkspace') try {
plugin.off('filePanel', 'workspaceDeleted') plugin.off('filePanel', 'setWorkspace')
plugin.off('filePanel', 'workspaceDeleted')
} catch (e) {
}
} }
}, [plugin]) }, [plugin])

Loading…
Cancel
Save