diff --git a/editor/components/app-runner/vanilla-dedicated-preview-renderer.tsx b/editor/components/app-runner/vanilla-dedicated-preview-renderer.tsx index 326625f9..c51b1567 100644 --- a/editor/components/app-runner/vanilla-dedicated-preview-renderer.tsx +++ b/editor/components/app-runner/vanilla-dedicated-preview-renderer.tsx @@ -7,7 +7,10 @@ export function VanillaDedicatedPreviewRenderer({ loader, componentName, source, -}: ScenePreviewData) { + enableIspector = false, +}: ScenePreviewData & { + enableIspector?: boolean; +}) { return ( <> {loader === "vanilla-esbuild-template" ? ( @@ -25,6 +28,7 @@ export function VanillaDedicatedPreviewRenderer({ borderRadius: 4, boxShadow: "0px 0px 48px #00000020", }} + enableInspector={enableIspector} source={source} componentName={componentName} /> diff --git a/editor/scaffolds/canvas/isolate-mode.tsx b/editor/scaffolds/canvas/isolate-mode.tsx index 947ff280..7e4c28ae 100644 --- a/editor/scaffolds/canvas/isolate-mode.tsx +++ b/editor/scaffolds/canvas/isolate-mode.tsx @@ -41,7 +41,10 @@ export function IsolateModeCanvas({ > <> {source ? ( - + ) : ( )}