console: add possible undefined check (#4445)

This commit is contained in:
Aleksandra Sikora 2020-04-17 08:28:47 +02:00 committed by GitHub
parent 6b2d525dd6
commit 550de3e8a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -31,6 +31,7 @@ The order, collapsed state of columns and page size is now persisted across page
- console: decouple data rows and count fetch in data browser to account for really large tables (close #3793) (#4269)
- console: update cookie policy for API calls to "same-origin"
- console: redirect to /:table/browse from /:table (close #4330) (#4374)
- console: add undefined check to fix error (close #4444) (#4445)
- docs: add One-Click Render deployment guide (close #3683) (#4209)
- server: reserved keywords in column references break parser (fix #3597) #3927
- server: fix postgres specific error message that exposed database type on invalid query parameters (#4294)

View File

@ -219,7 +219,7 @@ export const getEnumColumnMappings = (allSchemas, tableName, tableSchema) => {
allSchemas,
generateTableDef(ref_table, ref_table_table_schema)
);
if (!refTableSchema.is_enum) return;
if (!refTableSchema || !refTableSchema.is_enum) return;
const keys = Object.keys(column_mapping);
if (!keys.length) return;