Skip to content

Commit

Permalink
fix preview loading
Browse files Browse the repository at this point in the history
  • Loading branch information
softmarshmallow committed Nov 2, 2021
1 parent adc0f9a commit 3cbfddf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions editor/pages/live/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ function ResultProxyPage({ design }: { design: TargetNodeConfig }) {
},
}).then((result) => {
setResult(result);
setPreview(result);
});
// ----- for preview -----
designToCode({
Expand All @@ -143,7 +142,7 @@ function ResultProxyPage({ design }: { design: TargetNodeConfig }) {
}

const { code, scaffold, name: componentName } = result;

console.log("preview", preview);
return (
<WorkspaceContentPanelGridLayout>
<WorkspaceContentPanel disableBorder>
Expand Down

0 comments on commit 3cbfddf

Please sign in to comment.