Skip to content

Commit d9db3d9

Browse files
authored
Close Create Sandbox Modal on GitHub Import (#4569)
1 parent a1315c5 commit d9db3d9

File tree

1 file changed

+3
-2
lines changed
  • packages/app/src/app/components/CreateNewSandbox/CreateSandbox/Import

1 file changed

+3
-2
lines changed

packages/app/src/app/components/CreateNewSandbox/CreateSandbox/Import/Import.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,9 @@ export const Import = () => {
115115
autoWidth
116116
style={{ fontSize: 11 }}
117117
disabled={!transformedUrl}
118-
onClick={() => {
119-
actions.git.importFromGithub(gitHubToSandboxUrl(url));
118+
onClick={async () => {
119+
await actions.git.importFromGithub(gitHubToSandboxUrl(url));
120+
actions.modals.newSandboxModal.close();
120121
}}
121122
>
122123
Import and Fork

0 commit comments

Comments
 (0)