Skip to content

Commit

Permalink
Remove reset suggestions from dictionary toggle (#4007)
Browse files Browse the repository at this point in the history
Co-authored-by: Allison <[email protected]>
  • Loading branch information
TheAndrewJackson and allisonking committed Aug 31, 2023
1 parent ce2f6b0 commit 61dc5a3
Show file tree
Hide file tree
Showing 6 changed files with 306 additions and 409 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ The types of changes are:
- The integration search dropdown is now case-insensitive [#3916](https://github.com/ethyca/fides/pull/3916)
- Removed deprecated fields from the taxonomy editor [#3909](https://github.com/ethyca/fides/pull/3909)
- Bump PyMSSQL version and remove workarounds [#3996](https://github.com/ethyca/fides/pull/3996)
- Removed reset suggestions button [#4007](https://github.com/ethyca/fides/pull/4007)

## [2.18.0](https://github.com/ethyca/fides/compare/2.17.0...2.18.0)

Expand Down
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 61dc5a3

Please sign in to comment.