Skip to content

Commit ab22ee4

Browse files
committed
Fix check on git sandbox
1 parent 5fd71fb commit ab22ee4

File tree

1 file changed

+2
-1
lines changed
  • packages/app/src/app/overmind/namespaces/git

1 file changed

+2
-1
lines changed

packages/app/src/app/overmind/namespaces/git/actions.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ export const createRepoClicked: AsyncAction = async ({ state, effects }) => {
6060
};
6161

6262
export const gitMounted: AsyncAction = async ({ actions, state }) => {
63-
if (state.editor.currentSandbox.originalGit) {
63+
const currentSandbox = state.editor.currentSandbox;
64+
if (currentSandbox && currentSandbox.originalGit) {
6465
await actions.git.internal.fetchGitChanges();
6566
}
6667
};

0 commit comments

Comments
 (0)