diff --git a/app/client/src/components/designSystems/appsmith/CascadeFields.tsx b/app/client/src/components/designSystems/appsmith/CascadeFields.tsx index 341c52c0fe..9cc03b0158 100644 --- a/app/client/src/components/designSystems/appsmith/CascadeFields.tsx +++ b/app/client/src/components/designSystems/appsmith/CascadeFields.tsx @@ -211,9 +211,13 @@ const RenderOptions = (props: { ); if (selectedOptions && selectedOptions.length) { selectValue(selectedOptions[0].content); + } else { + selectValue(props.placeholder); } + } else { + selectValue(props.placeholder); } - }, [props.value, configs.sections]); + }, [props.value, props.placeholder, configs.sections]); return ; }; @@ -331,6 +335,7 @@ function CaseCaseFieldReducer( return { ...state, column: action.payload.value, + condition: "", conditions: typeOperatorsMap[type], showConditions: true, isUpdate: true, @@ -478,7 +483,7 @@ const Fields = (props: CascadeFieldProps & { state: CascadeFieldState }) => { columns={conditions} selectItem={selectCondition} value={condition} - placeholder="Is" + placeholder="" /> ) : null}