fix: remove redundant status(modified:false) call to restore undo/redo (fixes #779) (#780)

This commit is contained in:
Octopus
2026-04-10 10:30:05 +09:00
committed by GitHub
parent 43ddb7a999
commit 622aa8683d
+1 -5
View File
@@ -100,12 +100,8 @@ export default function Home() {
const handleDrawioAutoSave = useCallback(
(data: { xml?: string }) => {
handleDiagramAutoSave(data)
// Only suppress modified state when persistence is available
if (canPersist) {
drawioRef.current?.status({ message: "", modified: false })
}
},
[canPersist, drawioRef, handleDiagramAutoSave],
[handleDiagramAutoSave],
)
const handleDarkModeChange = () => {