From 636f78e21ec28d23ac3721981a1dabafbebad746 Mon Sep 17 00:00:00 2001 From: Carlos Valente Date: Tue, 18 Feb 2025 11:51:34 +0100 Subject: [PATCH] fix: unique reference for filter items --- .../automations-panel/AutomationForm.tsx | 126 +++++++++--------- 1 file changed, 66 insertions(+), 60 deletions(-) diff --git a/apps/client/src/features/app-settings/panel/automations-panel/AutomationForm.tsx b/apps/client/src/features/app-settings/panel/automations-panel/AutomationForm.tsx index bf5f143c5..bf4232c25 100644 --- a/apps/client/src/features/app-settings/panel/automations-panel/AutomationForm.tsx +++ b/apps/client/src/features/app-settings/panel/automations-panel/AutomationForm.tsx @@ -181,7 +181,7 @@ export default function AutomationForm(props: AutomationFormProps) {
-

Filters

+

Filters (optional)

- {fieldFilters.map((field, index) => ( -
- - + - -
-   -
- } - variant='ontime-ghosted' + + {errors.filters?.[index]?.operator?.message} + + +
+   +
+ } + variant='ontime-ghosted' + size='sm' + color='#FA5656' // $red-500 + onClick={() => removeFilter(index)} + isDisabled={false} + isLoading={false} + /> +
-
- ))} + ); + })}