From b982c57f57bfafa89967bfd67882df8408463299 Mon Sep 17 00:00:00 2001 From: Singhankit001 Date: Tue, 31 Mar 2026 00:41:11 +0530 Subject: [PATCH] fix: use strict equality in redo move action --- src/components/EditorHeader/ControlPanel.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/EditorHeader/ControlPanel.jsx b/src/components/EditorHeader/ControlPanel.jsx index ab0f77334..c910b80e5 100644 --- a/src/components/EditorHeader/ControlPanel.jsx +++ b/src/components/EditorHeader/ControlPanel.jsx @@ -341,7 +341,7 @@ export default function ControlPanel({ title, setTitle, lastSaved }) { setUndoStack((prev) => [...prev, a]); } else if (a.action === Action.MOVE) { if (a.element === ObjectType.TABLE) { - const { x, y } = tables.find((t) => t.id == a.id); + const { x, y } = tables.find((t) => t.id === a.id); setUndoStack((prev) => [...prev, { ...a, x, y }]); updateTable(a.id, { x: a.x, y: a.y }); } else if (a.element === ObjectType.AREA) {