Skip to content

Commit

Permalink
Sorted custom-metadata/allow-list API endpoint result set
Browse files Browse the repository at this point in the history
  • Loading branch information
chriscalhoun1974 committed Feb 16, 2023
1 parent 41c2d59 commit d5373ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clients/admin-ui/src/features/plus/plus.slice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ export const plusApi = createApi({
params: { show_values },
}),
providesTags: ["AllowList"],
transformResponse: (allowList: AllowList[]) =>
allowList.sort((a, b) => a.name!.localeCompare(b.name!)),
}),
upsertAllowList: build.mutation<AllowList, AllowListUpdate>({
query: (params: AllowListUpdate) => ({
Expand Down

0 comments on commit d5373ac

Please sign in to comment.