Skip to content

Commit

Permalink
Query View - Enable the Options In field for DeleteFromStore 🐛 #2538 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
robertbasti authored Nov 1, 2024
1 parent ab45b5e commit 8a4684b
Showing 1 changed file with 19 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ const QueryOptions: FC<QueryOptionsProps> = ({
</Stack>
</Stack>

{storeFunction === StoreFunction.GetFromStore && (
{(storeFunction === StoreFunction.GetFromStore ||
storeFunction === StoreFunction.DeleteFromStore) && (
<Box height="fit-content" pt="1rem">
<Box component="details" open>
<StyledSummary
Expand All @@ -182,21 +183,23 @@ const QueryOptions: FC<QueryOptionsProps> = ({
More options
</StyledSummary>
<Stack direction="row" alignItems="flex-end" gap="1rem" pt="1rem">
<StyledNativeSelect
label="Return elements"
id="return-elements"
onChange={onReturnElementsChange}
value={returnElements}
colors={colors}
>
{Object.values(ReturnElements).map((value) => {
return (
<option key={value} value={value}>
{value}
</option>
);
})}
</StyledNativeSelect>
{storeFunction === StoreFunction.GetFromStore && (
<StyledNativeSelect
label="Return elements"
id="return-elements"
onChange={onReturnElementsChange}
value={returnElements}
colors={colors}
>
{Object.values(ReturnElements).map((value) => {
return (
<option key={value} value={value}>
{value}
</option>
);
})}
</StyledNativeSelect>
)}
<StyledTextField
id="optionsIn"
label="Options In"
Expand Down

0 comments on commit 8a4684b

Please sign in to comment.