diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ad5ee0a..a0b13cee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # ChangeLog +### 4.0.3 +- FIX: fixes for FireFox (mainly incorrent handle of bind:clientHeight, replaces with resizeobserver) ### 4.0.2 - FIX: fixed docker and NPM build ### 4.0.0 diff --git a/packages/tools/src/structureTools.ts b/packages/tools/src/structureTools.ts index fe8869e3..6aac3291 100644 --- a/packages/tools/src/structureTools.ts +++ b/packages/tools/src/structureTools.ts @@ -2,7 +2,7 @@ import { DatabaseInfo } from 'dbgate-types'; import _ from 'lodash'; export function addTableDependencies(db: DatabaseInfo): DatabaseInfo { - const allForeignKeys = _.flatten(db.tables.map(x => x.foreignKeys)); + const allForeignKeys = _.flatten(db.tables.map(x => x.foreignKeys || [])); return { ...db, tables: db.tables.map(table => ({