Skip to content

Commit

Permalink
fix: do not render preview twice
Browse files Browse the repository at this point in the history
  • Loading branch information
seasick committed Jan 20, 2024
1 parent 919ed0d commit 2bcac2e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/components/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ export default function Editor({ url, initialMode }: Props) {
const codeResponse = await fetch(url);
const codeBody = await codeResponse.text();
setCode(codeBody);
await preview!(codeBody, parameters);
setIsRendering(false);
})();
}
}, [url]);
Expand Down

0 comments on commit 2bcac2e

Please sign in to comment.