diff --git a/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx b/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx index 9c656bfb3a..00ae818a0f 100644 --- a/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx +++ b/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx @@ -29,9 +29,9 @@ export const Workspace = (props: WorkspaceProps) => { const NO_WORKSPACE = ' - none - ' /* extends the parent 'plugin' with some function needed by the file explorer */ - props.plugin.resetFocus = () => { + props.plugin.resetFocus = (reset) => { setState(prevState => { - return { ...prevState, reset: true } + return { ...prevState, reset } }) }