@@ -41,6 +41,7 @@ const WebComponentProject = ({
4141 const projectIdentifier = useSelector (
4242 ( state ) => state . editor . project . identifier ,
4343 ) ;
44+ const isScratchProject = project . project_type === "scratch" ;
4445 const codeRunTriggered = useSelector (
4546 ( state ) => state . editor . codeRunTriggered ,
4647 ) ;
@@ -137,24 +138,28 @@ const WebComponentProject = ({
137138
138139 return (
139140 < >
140- { ! outputOnly &&
141- ( isMobile ? (
142- < MobileProject
143- withSidebar = { withSidebar }
144- sidebarOptions = { sidebarOptions }
145- />
146- ) : (
147- < Project
148- nameEditable = { nameEditable }
149- withProjectbar = { withProjectbar }
150- withSidebar = { withSidebar }
151- sidebarOptions = { sidebarOptions }
152- />
153- ) ) }
154- { outputOnly && (
155- < div className = "embedded-viewer" data-testid = "output-only" >
156- { loading === "success" && < Output outputPanels = { outputPanels } /> }
157- </ div >
141+ { ! isScratchProject && (
142+ < >
143+ { ! outputOnly &&
144+ ( isMobile ? (
145+ < MobileProject
146+ withSidebar = { withSidebar }
147+ sidebarOptions = { sidebarOptions }
148+ />
149+ ) : (
150+ < Project
151+ nameEditable = { nameEditable }
152+ withProjectbar = { withProjectbar }
153+ withSidebar = { withSidebar }
154+ sidebarOptions = { sidebarOptions }
155+ />
156+ ) ) }
157+ { outputOnly && (
158+ < div className = "embedded-viewer" data-testid = "output-only" >
159+ { loading === "success" && < Output outputPanels = { outputPanels } /> }
160+ </ div >
161+ ) }
162+ </ >
158163 ) }
159164 </ >
160165 ) ;
0 commit comments