From f010af3c82c0105d0f677cfe148b5b524e972d7d Mon Sep 17 00:00:00 2001 From: Matthew Goodwin <49927862+m4ttheweric@users.noreply.github.com> Date: Tue, 28 Mar 2023 23:19:44 -0500 Subject: [PATCH] console: fix issue with custom columns names that causes browse rows to error out PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8487 GitOrigin-RevId: f152efa8383ef7fd156f0a62242aacbaa00df113 --- .../BrowseRows/components/RunQuery/Filter/FilterRows.tsx | 3 +-- .../features/BrowseRows/components/RunQuery/Sort/SortRows.tsx | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/frontend/libs/console/legacy-ce/src/lib/features/BrowseRows/components/RunQuery/Filter/FilterRows.tsx b/frontend/libs/console/legacy-ce/src/lib/features/BrowseRows/components/RunQuery/Filter/FilterRows.tsx index 24bd5bd3cd2..713d212e190 100644 --- a/frontend/libs/console/legacy-ce/src/lib/features/BrowseRows/components/RunQuery/Filter/FilterRows.tsx +++ b/frontend/libs/console/legacy-ce/src/lib/features/BrowseRows/components/RunQuery/Filter/FilterRows.tsx @@ -53,10 +53,9 @@ export const FilterRows = ({ }; const columnOptions: SelectItem[] = columns.map(column => { - const value = column.graphQLProperties?.name ?? column.name; return { label: column.name, - value, + value: column.name, }; }); diff --git a/frontend/libs/console/legacy-ce/src/lib/features/BrowseRows/components/RunQuery/Sort/SortRows.tsx b/frontend/libs/console/legacy-ce/src/lib/features/BrowseRows/components/RunQuery/Sort/SortRows.tsx index b5c935ffa1c..86110dd7fc9 100644 --- a/frontend/libs/console/legacy-ce/src/lib/features/BrowseRows/components/RunQuery/Sort/SortRows.tsx +++ b/frontend/libs/console/legacy-ce/src/lib/features/BrowseRows/components/RunQuery/Sort/SortRows.tsx @@ -33,10 +33,9 @@ export const SortRows = ({ }, [initialSorts?.length]); const columnOptions: SelectItem[] = columns.map(column => { - const value = column.graphQLProperties?.name ?? column.name; return { label: column.name, - value, + value: column.name, }; });