Skip to content

Commit

Permalink
feat: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
PintoGideon committed Oct 24, 2024
1 parent b321f61 commit 4c860e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
10 changes: 1 addition & 9 deletions src/components/Preview/displays/DcmDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,15 +188,7 @@ const DcmDisplay = (props: DcmImageProps) => {
// biome-ignore lint/complexity/noUselessCatch: <explanation>
throw e;
}
}, [
selectedFile,
cacheStack,
fname,
currentImageIndex,
selectedIndex,
displayDicomImage,
loadDicomImage,
]);
}, [selectedFile, cacheStack, fname, currentImageIndex, selectedIndex]);

// Use React Query to fetch and cache the preview data
const { isLoading, data, isError, error } = useQuery({
Expand Down
2 changes: 1 addition & 1 deletion src/components/Preview/displays/dicomUtils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export const handleEvents = (
const previousTool = actionState.previouslyActive as string;
const id = toolGroup?.id;

if (activeTool === "TagInfo") return;
if (activeTool === "TagInfo" || activeTool === "Play") return;

if (id) {
toolGroup?.setToolPassive(previousTool);
Expand Down

0 comments on commit 4c860e6

Please sign in to comment.