mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 09:22:43 +03:00
This commit is contained in:
parent
a1a851b3d1
commit
3a07b2b0cf
@ -243,14 +243,14 @@ export const getSchemaTableNames = (allTables, tableSchema) => {
|
||||
|
||||
export const getTableCustomRootFields = table => {
|
||||
if (table.configuration) {
|
||||
return table.configuration.custom_root_fields;
|
||||
return table.configuration.custom_root_fields || {};
|
||||
}
|
||||
return {};
|
||||
};
|
||||
|
||||
export const getTableCustomColumnNames = table => {
|
||||
if (table.configuration) {
|
||||
return table.configuration.custom_column_names;
|
||||
return table.configuration.custom_column_names || {};
|
||||
}
|
||||
return {};
|
||||
};
|
||||
|
@ -85,7 +85,7 @@ const ColumnEditor = ({
|
||||
return (
|
||||
<div className={`${styles.display_flex} form-group`}>
|
||||
<label className={'col-xs-4'}>
|
||||
Custom GraphQL field
|
||||
GraphQL field name
|
||||
<Tooltip
|
||||
message={
|
||||
'Expose the column with a different name in the GraphQL API'
|
||||
@ -97,6 +97,7 @@ const ColumnEditor = ({
|
||||
className="input-sm form-control"
|
||||
value={selectedProperties[colName].customFieldName}
|
||||
onChange={updateColumnCustomField}
|
||||
placeholder={`${colName} (default)`}
|
||||
type="text"
|
||||
data-test="edit-col-custom-field"
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user