diff --git a/web/src/screens/filters/action.tsx b/web/src/screens/filters/action.tsx index 386d114..9337b34 100644 --- a/web/src/screens/filters/action.tsx +++ b/web/src/screens/filters/action.tsx @@ -84,7 +84,7 @@ export function FilterActions({ filter, values }: FilterActionsProps) { {values.actions.length > 0 ? : @@ -405,14 +405,15 @@ interface FilterActionsItemProps { action: Action; clients: DownloadClient[]; idx: number; + initialEdit: boolean; remove: (index: number) => T | undefined; } -function FilterActionsItem({ action, clients, idx, remove }: FilterActionsItemProps) { +function FilterActionsItem({ action, clients, idx, initialEdit, remove }: FilterActionsItemProps) { const cancelButtonRef = useRef(null); const [deleteModalIsOpen, toggleDeleteModal] = useToggle(false); - const [edit, toggleEdit] = useToggle(false); + const [edit, toggleEdit] = useToggle(initialEdit); return (