search error

pull/5370/head
filip mertens 2 years ago
parent bb724bc88a
commit a2a9c58566
  1. 4
      libs/remix-ui/search/src/lib/context/context.tsx

@ -338,8 +338,10 @@ export const SearchProvider = ({
async function fetchWorkspace() { async function fetchWorkspace() {
try { try {
const workspace = await plugin.call('filePanel', 'getCurrentWorkspace') const workspace = await plugin.call('filePanel', 'getCurrentWorkspace')
if (workspace) value.setCurrentWorkspace(workspace.name) if (workspace && workspace.name) {
value.setCurrentWorkspace(workspace.name)
setFiles(await getDirectory('/', plugin)) setFiles(await getDirectory('/', plugin))
}
} catch (e) { } catch (e) {
console.log(e) console.log(e)
} }

Loading…
Cancel
Save