Skip to content

Commit

Permalink
Fix tree not refreshing when importing on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
misode committed Oct 4, 2024
1 parent f1b60b8 commit 23ab957
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/components/generator/SourcePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,9 @@ export function SourcePanel({ name, model, blockStates, doCopy, doDownload, doIm
if (editor.current) {
const text = await navigator.clipboard.readText()
editor.current.setValue(text)
onImport.current()
}
}, [])
}, [editor, onImport])

return <>
<div class="controls source-controls">
Expand Down

0 comments on commit 23ab957

Please sign in to comment.