Skip to content

Commit 7acd894

Browse files
committed
Fix sandbox reload
1 parent 55aed13 commit 7acd894

File tree

1 file changed

+6
-3
lines changed
  • packages/app/src/app/overmind/namespaces/editor

1 file changed

+6
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,12 @@ export const sandboxChanged: AsyncAction<{ id: string }> = withLoadApp<{
124124
invitationToken,
125125
});
126126

127-
// Remove the invite from the url
128-
url.searchParams.delete('ts');
129-
history.replace(url.pathname);
127+
// Timeout to prevent that we load the whole sandbox twice at the same time
128+
setTimeout(() => {
129+
// Remove the invite from the url
130+
url.searchParams.delete('ts');
131+
history.replace(url.pathname);
132+
}, 3000);
130133
} catch (error) {
131134
if (
132135
!error.message.includes('Cannot redeem token, invitation not found')

0 commit comments

Comments
 (0)