From e0d3313c3bfdaa314696ff160f211e2e80619864 Mon Sep 17 00:00:00 2001 From: Aniket-Engg Date: Mon, 7 Nov 2022 19:23:53 +0530 Subject: [PATCH] await and log --- libs/remix-ui/workspace/src/lib/actions/workspace.ts | 4 ++-- libs/remix-ui/workspace/src/lib/reducers/workspace.ts | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/libs/remix-ui/workspace/src/lib/actions/workspace.ts b/libs/remix-ui/workspace/src/lib/actions/workspace.ts index 3a80fd5a0c..16caeb39b2 100644 --- a/libs/remix-ui/workspace/src/lib/actions/workspace.ts +++ b/libs/remix-ui/workspace/src/lib/actions/workspace.ts @@ -106,13 +106,13 @@ export const createWorkspace = async (workspaceName: string, workspaceTemplateNa }, false) ) ).then(async () => { - plugin.call('dGitProvider', 'commit', { + await plugin.call('dGitProvider', 'commit', { author: { name, email }, message: `Initial commit: remix template ${workspaceTemplateName}`, - }).then(console.log).catch(console.error) + }) }) } } diff --git a/libs/remix-ui/workspace/src/lib/reducers/workspace.ts b/libs/remix-ui/workspace/src/lib/reducers/workspace.ts index ab982ea269..b90058d744 100644 --- a/libs/remix-ui/workspace/src/lib/reducers/workspace.ts +++ b/libs/remix-ui/workspace/src/lib/reducers/workspace.ts @@ -136,7 +136,6 @@ export const browserReducer = (state = browserInitialState, action: Action) => { } case 'SET_WORKSPACES': { - console.log('called SET_WORKSPACES') const payload = action.payload as { name: string; isGitRepo: boolean; branches?: { remote: any; name: string; }[], currentBranch?: string }[] return {