Skip to content

Commit 04c8a59

Browse files
jyash97SaraVieira
authored andcommitted
fix: templates custom loading on new sandbox modal (codesandbox#2429)
1 parent 62f610a commit 04c8a59

File tree

1 file changed

+4
-0
lines changed
  • packages/app/src/app/pages/Dashboard/Content/CreateNewSandbox/NewSandboxModal/MyTemplates

1 file changed

+4
-0
lines changed

packages/app/src/app/pages/Dashboard/Content/CreateNewSandbox/NewSandboxModal/MyTemplates/MyTemplates.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ export const MyTemplates = ({ selectTemplate }: Props) => {
2323
fetchPolicy: 'cache-and-network',
2424
});
2525

26+
if (!data.me) {
27+
return null;
28+
}
29+
2630
if (data.me && !data.me.templates.length) {
2731
return null;
2832
}

0 commit comments

Comments
 (0)