Fix issue when switching versions and generators at the same time

This commit is contained in:
Misode
2024-11-27 00:11:43 +01:00
parent 2f5f18777d
commit 283248911b
3 changed files with 22 additions and 26 deletions

View File

@@ -148,7 +148,6 @@ export function SourcePanel({ docAndNode, doCopy, doDownload, doImport, copySucc
}
}, [highlighting])
// TODO: when file contents change, retransform
useEffect(() => {
if (retransform.current && text !== undefined) {
retransform.current()