Skip to content

Commit

Permalink
fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomThomson committed Oct 20, 2021
1 parent 6bb1629 commit 3ed97a1
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ export const ControlGroup = () => {
);

const [draggingId, setDraggingId] = useState<string | null>(null);
const draggingIndex = useMemo(() => (draggingId ? idsInOrder.indexOf(draggingId) : -1), [
idsInOrder,
draggingId,
]);
const draggingIndex = useMemo(
() => (draggingId ? idsInOrder.indexOf(draggingId) : -1),
[idsInOrder, draggingId]
);

const sensors = useSensors(
useSensor(PointerSensor),
Expand Down

0 comments on commit 3ed97a1

Please sign in to comment.