mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-23 15:17:09 +00:00
Fix tree not refreshing when importing on mobile
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user