diff --git a/src/components/EditorSidePanel/TablesTab/TableInfo.jsx b/src/components/EditorSidePanel/TablesTab/TableInfo.jsx index 8b2cb087..e70ce7a7 100644 --- a/src/components/EditorSidePanel/TablesTab/TableInfo.jsx +++ b/src/components/EditorSidePanel/TablesTab/TableInfo.jsx @@ -1,4 +1,4 @@ -import { useState } from "react"; +import { useRef, useState } from "react"; import { Collapse, Row, @@ -19,9 +19,11 @@ import IndexDetails from "./IndexDetails"; export default function TableInfo({ data }) { const [indexActiveKey, setIndexActiveKey] = useState(""); - const { deleteTable, updateTable } = useTables(); + const { deleteTable, updateTable, updateField } = useTables(); const { setUndoStack, setRedoStack } = useUndoRedo(); const [editField, setEditField] = useState({}); + const draggingElementIndex = useRef(); + const isDragging = useRef(); return (