File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
packages/app/src/app/components/CreateNewSandbox/CreateSandbox/TemplateList Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 11import React from 'react' ;
22import { TemplateFragment } from 'app/graphql/types' ;
33import { sandboxUrl } from '@codesandbox/common/lib/utils/url-generator' ;
4- import getTemplateDefinition from '@codesandbox/common/lib/templates' ;
4+ import getTemplateDefinition , {
5+ TemplateType ,
6+ } from '@codesandbox/common/lib/templates' ;
57import { useOvermind } from 'app/overmind' ;
68import { useKey } from 'react-use' ;
79import { isMac } from '@codesandbox/common/lib/utils/platform' ;
@@ -53,7 +55,9 @@ export const TemplateList = ({
5355 openInNewWindow = false
5456 ) => {
5557 // We can't fork a sandbox that's server and if you're signed in, so then we just go to it
56- const templateDefinition = getTemplateDefinition ( sandbox . source . template ) ;
58+ const templateDefinition = getTemplateDefinition (
59+ sandbox . source . template as TemplateType
60+ ) ;
5761 const cannotFork = templateDefinition . isServer && ! state . isLoggedIn ;
5862
5963 if ( forkOnOpen && ! cannotFork ) {
You can’t perform that action at this time.
0 commit comments