From 73788abff96faad352af22b5688dd8581066702c Mon Sep 17 00:00:00 2001 From: Octopus Date: Sat, 4 Apr 2026 09:54:20 +0800 Subject: [PATCH] fix: remove redundant status(modified:false) call to restore undo/redo (fixes #779) --- app/[lang]/page.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/[lang]/page.tsx b/app/[lang]/page.tsx index 0170bf34..e44bd6ca 100644 --- a/app/[lang]/page.tsx +++ b/app/[lang]/page.tsx @@ -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 = () => {