Skip to content

Commit

Permalink
Fix browser issue in inventory filter (#788)
Browse files Browse the repository at this point in the history
  • Loading branch information
AbbyB97 authored Aug 27, 2024
1 parent 164efb8 commit f80346c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/FilterWidget/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -452,14 +452,14 @@ export default function FilterWidget({ onFilterUpdate, title, entity, getAvailab

<Col>
<FormGroup>
<Label for="value">Filter Value</Label>
<Label for="valueSelect">Filter Value</Label>
{currentField?.type === undefined ||
currentField?.type === FilterFieldType.String ||
currentField?.type === FilterFieldType.Date ||
currentField?.type === FilterFieldType.Datetime ||
currentField?.type === FilterFieldType.Number ? (
<Input
id="value"
id="valueSelect"
type={
currentField?.attributeContentType && checkIfFieldAttributeTypeIsDate(currentField)
? getFormTypeFromAttributeContentType(currentField?.attributeContentType)
Expand Down Expand Up @@ -492,6 +492,7 @@ export default function FilterWidget({ onFilterUpdate, title, entity, getAvailab
) : currentField?.type === FilterFieldType.Boolean ? (
<Select
id="value"
inputId="valueSelect"
options={filterField ? booleanOptions : undefined}
value={filterValue || null}
onChange={(e) => {
Expand All @@ -502,6 +503,7 @@ export default function FilterWidget({ onFilterUpdate, title, entity, getAvailab
) : (
<Select
id="value"
inputId="valueSelect"
options={objectValueOptions}
value={filterValue || null}
onChange={(e) => {
Expand Down

0 comments on commit f80346c

Please sign in to comment.