catch error

pull/4355/head
filip mertens 11 months ago
parent a6c68559b2
commit d872029740
  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