From 4c860e62578708e711bac74befbdfd6cccab2d1b Mon Sep 17 00:00:00 2001 From: PintoGideon Date: Thu, 24 Oct 2024 10:45:00 -0400 Subject: [PATCH] feat: cleanup --- src/components/Preview/displays/DcmDisplay.tsx | 10 +--------- src/components/Preview/displays/dicomUtils/utils.ts | 2 +- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/components/Preview/displays/DcmDisplay.tsx b/src/components/Preview/displays/DcmDisplay.tsx index 414f6c31d..4347c21b3 100644 --- a/src/components/Preview/displays/DcmDisplay.tsx +++ b/src/components/Preview/displays/DcmDisplay.tsx @@ -188,15 +188,7 @@ const DcmDisplay = (props: DcmImageProps) => { // biome-ignore lint/complexity/noUselessCatch: 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({ diff --git a/src/components/Preview/displays/dicomUtils/utils.ts b/src/components/Preview/displays/dicomUtils/utils.ts index 87bd474c1..d6210bf72 100644 --- a/src/components/Preview/displays/dicomUtils/utils.ts +++ b/src/components/Preview/displays/dicomUtils/utils.ts @@ -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);