Skip to content

Commit

Permalink
feat: #comment fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
scrt-dev committed Sep 30, 2024
1 parent 2ead8ad commit 8864f54
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/components/DeviceNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ const DeviceNode: React.FC<DeviceNodeProps> = ({
const lastPositionRef = useRef({ x: 0, y: 0 });
const [nodeSize, setNodeSize] = useState({ width: 0, height: 0 });

console.log(gridWidth, gridHeight, nodeSize);

useEffect(() => {
setPosition(device.position);
}, [device.position]);
Expand Down
2 changes: 1 addition & 1 deletion src/components/EditDeviceForm.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// src/components/EditDeviceForm.tsx

import React, { useState, useEffect } from "react";
import React, { useState } from "react";
import { Device, Port } from "../types/devices";

interface EditDeviceFormProps {
Expand Down
1 change: 1 addition & 0 deletions src/hooks/useAudioDeviceStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ export function useAudioDeviceStore() {
return { previousDevices };
},
onError: (err, newTodo, context) => {
console.log("Error updating device position", err, newTodo, context);
queryClient.setQueryData(DEVICES_KEY, context?.previousDevices);
},
onSettled: () => {
Expand Down

0 comments on commit 8864f54

Please sign in to comment.