Skip to content

Commit

Permalink
Remove reset suggestions from dictionary toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
allisonking committed Aug 25, 2023
1 parent e136ac6 commit 4576747
Show file tree
Hide file tree
Showing 5 changed files with 306 additions and 409 deletions.
6 changes: 2 additions & 4 deletions clients/admin-ui/src/features/plus/plus.slice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -407,13 +407,11 @@ export const selectAllDictEntries = createSelector(
);

const EMPTY_DICT_ENTRY = undefined;
export const selectDictEntry = (vendorId: number) =>
export const selectDictEntry = (vendorId: string) =>
createSelector(
[(state) => state, plusApi.endpoints.getAllDictionaryEntries.select()],
(state, { data }) => {
const dictEntry = data?.items.find(
(d) => d.id.toString() === vendorId.toString()
);
const dictEntry = data?.items.find((d) => d.id.toString() === vendorId);

return dictEntry || EMPTY_DICT_ENTRY;
}
Expand Down
Loading

0 comments on commit 4576747

Please sign in to comment.