From 3efd573629702e5179a882d88a4f88f8139b0915 Mon Sep 17 00:00:00 2001 From: filip mertens Date: Wed, 9 Nov 2022 14:36:23 +0100 Subject: [PATCH] mv call --- libs/remix-ui/workspace/src/lib/actions/workspace.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/remix-ui/workspace/src/lib/actions/workspace.ts b/libs/remix-ui/workspace/src/lib/actions/workspace.ts index 78e4f96b2d..41965ca067 100644 --- a/libs/remix-ui/workspace/src/lib/actions/workspace.ts +++ b/libs/remix-ui/workspace/src/lib/actions/workspace.ts @@ -135,6 +135,7 @@ export const createWorkspace = async (workspaceName: string, workspaceTemplateNa } } cb && cb(null, workspaceName) + // this call needs to be here after the callback because it calls dGitProvider which also calls this function and that would cause an infinite loop await plugin.setWorkspaces(await getWorkspaces()) }).catch((error) => { dispatch(createWorkspaceError({ error }))