From fca6146b3afa5909fa6f1b6272aec1f1d5952858 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20G=C3=B3is?= Date: Fri, 15 Mar 2024 11:54:31 +0000 Subject: [PATCH] fix: action select value (#6582) This should fix the action select bug where it shows as empty when the form loads. --- .../ProjectActionsActionSelect.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/component/project/Project/ProjectSettings/ProjectActions/ProjectActionsTable/ProjectActionsModal/ProjectActionsForm/ProjectActionsFormStep/ProjectActionsFormStepActions/ProjectActionsActionSelect.tsx b/frontend/src/component/project/Project/ProjectSettings/ProjectActions/ProjectActionsTable/ProjectActionsModal/ProjectActionsForm/ProjectActionsFormStep/ProjectActionsFormStepActions/ProjectActionsActionSelect.tsx index 033d8aba7e..8a9619ae5c 100644 --- a/frontend/src/component/project/Project/ProjectSettings/ProjectActions/ProjectActionsTable/ProjectActionsModal/ProjectActionsForm/ProjectActionsFormStep/ProjectActionsFormStepActions/ProjectActionsActionSelect.tsx +++ b/frontend/src/component/project/Project/ProjectSettings/ProjectActions/ProjectActionsTable/ProjectActionsModal/ProjectActionsForm/ProjectActionsFormStep/ProjectActionsFormStepActions/ProjectActionsActionSelect.tsx @@ -45,7 +45,7 @@ export const ProjectActionsActionSelect = ({ options={actionOptions} autoHighlight autoSelect - value={actionOptions.find(({ key }) => key === value)} + value={actionOptions.find(({ key }) => key === value) || null} onChange={(_, value) => onChange(value ? value.key : '')} renderOption={renderActionOption} getOptionLabel={({ label }) => label}