Skip to content

Commit 23ab957

Browse files
committed
Fix tree not refreshing when importing on mobile
1 parent f1b60b8 commit 23ab957

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/app/components/generator/SourcePanel.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,9 @@ export function SourcePanel({ name, model, blockStates, doCopy, doDownload, doIm
206206
if (editor.current) {
207207
const text = await navigator.clipboard.readText()
208208
editor.current.setValue(text)
209+
onImport.current()
209210
}
210-
}, [])
211+
}, [editor, onImport])
211212

212213
return <>
213214
<div class="controls source-controls">

0 commit comments

Comments
 (0)