Skip to content

Commit

Permalink
fix copy code for react platform
Browse files Browse the repository at this point in the history
  • Loading branch information
softmarshmallow committed Oct 6, 2021
1 parent b9b89bb commit 71f22ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/app-design-to-code/code-screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export function CodeScreen() {
targetid={selection?.id}
onGeneration={(app, src, vanilla_preview_source) => {
setApp(app);
setSource(src);
setSource(src ?? app); // TODO: react only provides app. this needs to be fixed on the codegen side.
handle_vanilla_preview_source(vanilla_preview_source);
}}
onAssetsLoad={(r) => {
Expand Down

0 comments on commit 71f22ae

Please sign in to comment.