diff --git a/frontend/src/components/layout/Workbench.tsx b/frontend/src/components/layout/Workbench.tsx index 7b8e3495e..724b0400a 100644 --- a/frontend/src/components/layout/Workbench.tsx +++ b/frontend/src/components/layout/Workbench.tsx @@ -30,7 +30,7 @@ export default function Workbench() { const setCurrentView = navActions.setWorkbench; // Create stable reference for activeFiles based on file IDs - const activeFiles = useMemo(() => selectors.getFiles(), [state.files.ids.join(',')]); + const activeFiles = useMemo(() => selectors.getFiles(), [state.files.ids]); const { previewFile, pageEditorFunctions, diff --git a/frontend/src/components/pageEditor/PageEditor.tsx b/frontend/src/components/pageEditor/PageEditor.tsx index 9254f7342..cfe09cb46 100644 --- a/frontend/src/components/pageEditor/PageEditor.tsx +++ b/frontend/src/components/pageEditor/PageEditor.tsx @@ -1104,13 +1104,9 @@ const PageEditor = ({ movingPage={movingPage} isAnimating={isAnimating} isBoxSelected={isBoxSelected} - boxSelectedPageIds={boxSelectedIds} clearBoxSelection={clearBoxSelection} - getBoxSelection={getBoxSelection} - activeId={activeId} activeDragIds={activeDragIds} justMoved={justMoved} - isOver={isOver} pageRefs={refs} dragHandleProps={dragHandleProps} onReorderPages={handleReorderPages} diff --git a/frontend/src/components/pageEditor/PageThumbnail.tsx b/frontend/src/components/pageEditor/PageThumbnail.tsx index 5aadc2238..0ce85391d 100644 --- a/frontend/src/components/pageEditor/PageThumbnail.tsx +++ b/frontend/src/components/pageEditor/PageThumbnail.tsx @@ -28,13 +28,9 @@ interface PageThumbnailProps { movingPage: number | null; isAnimating: boolean; isBoxSelected?: boolean; - boxSelectedPageIds?: string[]; clearBoxSelection?: () => void; - getBoxSelection?: () => string[]; - activeId: string | null; activeDragIds: string[]; justMoved?: boolean; - isOver: boolean; pageRefs: React.MutableRefObject>; dragHandleProps?: any; onReorderPages: (sourcePageNumber: number, targetIndex: number, selectedPageIds?: string[]) => void; @@ -65,11 +61,8 @@ const PageThumbnail: React.FC = ({ movingPage, isAnimating, isBoxSelected = false, - // boxSelectedPageIds, clearBoxSelection, - // getBoxSelection, activeDragIds, - // isOver, pageRefs, dragHandleProps, onReorderPages,