Skip to content

Commit 1e8855e

Browse files
committed
fix(tag-drop): clear drag highlight before readonly early return
1 parent 5c911af commit 1e8855e

File tree

1 file changed

+1
-1
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/variables-input

1 file changed

+1
-1
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/variables-input/variables-input.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,9 +338,9 @@ export function VariablesInput({
338338
}
339339

340340
const handleEditorDrop = (e: React.DragEvent, assignmentId: string) => {
341-
if (isReadOnly) return
342341
e.preventDefault()
343342
setDragHighlight((prev) => ({ ...prev, [assignmentId]: false }))
343+
if (isReadOnly) return
344344
try {
345345
const data = JSON.parse(e.dataTransfer.getData('application/json'))
346346
if (data.type !== 'connectionBlock') return

0 commit comments

Comments
 (0)