From def3ba06de112ba569a080ff29aff2fa70ab0657 Mon Sep 17 00:00:00 2001 From: ValueOn AG Date: Thu, 12 Feb 2026 00:41:51 +0100 Subject: [PATCH] =?UTF-8?q?Fixed=203=20issues:=20AdminAutomationEventsPage?= =?UTF-8?q?.tsx=20=E2=80=94=20removed=20the=20unused=20=5Fevent=20variable?= =?UTF-8?q?=20entirely=20(it=20was=20never=20referenced).=20AutomationTemp?= =?UTF-8?q?latesPage.tsx=20=E2=80=94=20removed=20FaCopy=20from=20the=20imp?= =?UTF-8?q?ort=20(no=20longer=20used=20after=20switching=20to=20type:=20'c?= =?UTF-8?q?opy').=20AutomationsPage.tsx=20=E2=80=94=20same,=20removed=20th?= =?UTF-8?q?e=20now-unused=20FaCopy=20import.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../UiComponents/Messages/MessageParts/DocumentItem.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/UiComponents/Messages/MessageParts/DocumentItem.tsx b/src/components/UiComponents/Messages/MessageParts/DocumentItem.tsx index 134a3f6..eff16ca 100644 --- a/src/components/UiComponents/Messages/MessageParts/DocumentItem.tsx +++ b/src/components/UiComponents/Messages/MessageParts/DocumentItem.tsx @@ -54,6 +54,9 @@ export const DocumentItem: React.FC = ({ const isDownloading = downloadingFiles.has(document.fileId); // Create hookData object for action buttons + // Note: removeOptimistically is intentionally omitted -- the parent handles + // immediate UI removal via deletedDocumentFileIds state in useDashboardInputForm. + // If removeOptimistically were a no-op function, DeleteActionButton would skip refetch. const hookData = useMemo(() => ({ handleDelete: async (_fileId: string) => { if (onFileDelete) { @@ -62,11 +65,8 @@ export const DocumentItem: React.FC = ({ } return false; }, - removeOptimistically: () => { - // Handled by parent component - }, refetch: async () => { - // Refetch handled by parent + // Refetch handled by parent (polling + local state) }, deletingItems: deletingFiles, previewingFiles: previewingFiles,