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
This commit is contained in:
Matthew Goodwin 2023-03-28 23:19:44 -05:00 committed by hasura-bot
parent b42d1dd249
commit f010af3c82
2 changed files with 2 additions and 4 deletions

View File

@ -53,10 +53,9 @@ export const FilterRows = ({
}; };
const columnOptions: SelectItem[] = columns.map(column => { const columnOptions: SelectItem[] = columns.map(column => {
const value = column.graphQLProperties?.name ?? column.name;
return { return {
label: column.name, label: column.name,
value, value: column.name,
}; };
}); });

View File

@ -33,10 +33,9 @@ export const SortRows = ({
}, [initialSorts?.length]); }, [initialSorts?.length]);
const columnOptions: SelectItem[] = columns.map(column => { const columnOptions: SelectItem[] = columns.map(column => {
const value = column.graphQLProperties?.name ?? column.name;
return { return {
label: column.name, label: column.name,
value, value: column.name,
}; };
}); });