mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-06 06:48:21 +00:00
fix conflict
This commit is contained in:
parent
53e7de0247
commit
753f3384e9
1 changed files with 1 additions and 1 deletions
|
|
@ -884,7 +884,7 @@ export default function Grid({ gridWidth, currentLayout }) {
|
|||
onDrag={(e) => {
|
||||
// Since onDrag is called multiple times when dragging, hence we are using isDraggingRef to prevent setting state again and again
|
||||
if (!isDraggingRef.current) {
|
||||
useGridStore.getState().actions.setDraggingComponentId(e.target.id);
|
||||
useStore.getState().setDraggingComponentId(e.target.id);
|
||||
showGridLines();
|
||||
isDraggingRef.current = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue