Fixed 3 issues:

AdminAutomationEventsPage.tsx — removed the unused _event variable entirely (it was never referenced).
AutomationTemplatesPage.tsx — removed FaCopy from the import (no longer used after switching to type: 'copy').
AutomationsPage.tsx — same, removed the now-unused FaCopy import.
This commit is contained in:
ValueOn AG 2026-02-12 00:41:51 +01:00
parent d2a2cfbd10
commit def3ba06de

View file

@ -54,6 +54,9 @@ export const DocumentItem: React.FC<DocumentItemProps> = ({
const isDownloading = downloadingFiles.has(document.fileId); const isDownloading = downloadingFiles.has(document.fileId);
// Create hookData object for action buttons // 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(() => ({ const hookData = useMemo(() => ({
handleDelete: async (_fileId: string) => { handleDelete: async (_fileId: string) => {
if (onFileDelete) { if (onFileDelete) {
@ -62,11 +65,8 @@ export const DocumentItem: React.FC<DocumentItemProps> = ({
} }
return false; return false;
}, },
removeOptimistically: () => {
// Handled by parent component
},
refetch: async () => { refetch: async () => {
// Refetch handled by parent // Refetch handled by parent (polling + local state)
}, },
deletingItems: deletingFiles, deletingItems: deletingFiles,
previewingFiles: previewingFiles, previewingFiles: previewingFiles,