Skip to content

Commit

Permalink
Fikser issue med unknown values
Browse files Browse the repository at this point in the history
  • Loading branch information
otenav committed Apr 19, 2022
1 parent a8b5df6 commit e5616b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/views/search/searchCriteria/Occupations.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ function Occupations({ initialValues, updatedValues, query, dispatch }) {
checkedNestedValues={query.occupationSecondLevels}
onClick={handleFirstLevelClick}
onNestedLevelClick={handleSecondLevelClick}
shouldFixLocationName={true}
/>
</CriteriaPanel>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default function UnknownSearchCriteriaValues(
<div key={second}>
<Checkbox
name={`${namePrefix}-unknownFacetNestedValue`}
label={`${shouldFixLocationName ? fixLocationName(second.split(".")[1]) : sec} (0)`}
label={`${shouldFixLocationName ? fixLocationName(second.split(".")[1]) : second} (0)`}
value={second}
onChange={onNestedLevelClick}
checked={checkedNestedValues.includes(second)}
Expand Down

0 comments on commit e5616b4

Please sign in to comment.