diff --git a/app/layout/project/sidebar/scenario/grid-setup/features/modals/split/index.tsx b/app/layout/project/sidebar/scenario/grid-setup/features/modals/split/index.tsx index ef9b8d4040..839c3b80a0 100644 --- a/app/layout/project/sidebar/scenario/grid-setup/features/modals/split/index.tsx +++ b/app/layout/project/sidebar/scenario/grid-setup/features/modals/split/index.tsx @@ -91,7 +91,7 @@ const SplitModal = ({ selectedFeaturesMutation.mutate( { - id: `${sid}`, + id: sid, data: { status: 'draft', features: selectedFeaturesQuery.data.map((sf) => { @@ -204,7 +204,10 @@ const SplitModal = ({ clearSelectionLabel="Clear selection" selected={values.splitOption} options={SPLIT_OPTIONS} - onChange={fprops.input.onChange} + onChange={(v) => { + fprops.input.onChange(v); + setSplitFeaturesSelected([]); + }} /> @@ -223,7 +226,7 @@ const SplitModal = ({ (sfs) => sfs.id === `${value.name}` ); return ( -