diff --git a/web/app/components/base/select/index.tsx b/web/app/components/base/select/index.tsx index 0e3cf10c09..2d1f4431ef 100644 --- a/web/app/components/base/select/index.tsx +++ b/web/app/components/base/select/index.tsx @@ -41,6 +41,7 @@ export type ISelectProps = { optionWrapClassName?: string optionClassName?: string hideChecked?: boolean + notClearable?: boolean renderOption?: ({ item, selected, @@ -179,6 +180,7 @@ const SimpleSelect: FC = ({ optionWrapClassName, optionClassName, hideChecked, + notClearable, renderOption, }) => { const { t } = useTranslation() @@ -205,13 +207,13 @@ const SimpleSelect: FC = ({ } }} > -
+
{renderTrigger && {renderTrigger(selectedItem)}} {!renderTrigger && ( - - {selectedItem?.name ?? localPlaceholder} + + {selectedItem?.name ?? localPlaceholder} - {selectedItem + {(selectedItem && !notClearable) ? ( { diff --git a/web/app/components/workflow/nodes/if-else/components/condition-list/condition-item.tsx b/web/app/components/workflow/nodes/if-else/components/condition-list/condition-item.tsx index e60e34b45f..bd895930f3 100644 --- a/web/app/components/workflow/nodes/if-else/components/condition-list/condition-item.tsx +++ b/web/app/components/workflow/nodes/if-else/components/condition-list/condition-item.tsx @@ -248,13 +248,15 @@ const ConditionItem = ({ } { !comparisonOperatorNotRequireValue(condition.comparison_operator) && isSelect && ( -
+