This commit is contained in:
Jan Prochazka 2021-04-02 13:35:54 +02:00
parent 1a94222262
commit d4bd6e03c9
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
# ChangeLog # ChangeLog
### 4.0.3
- FIX: fixes for FireFox (mainly incorrent handle of bind:clientHeight, replaces with resizeobserver)
### 4.0.2 ### 4.0.2
- FIX: fixed docker and NPM build - FIX: fixed docker and NPM build
### 4.0.0 ### 4.0.0

View File

@ -2,7 +2,7 @@ import { DatabaseInfo } from 'dbgate-types';
import _ from 'lodash'; import _ from 'lodash';
export function addTableDependencies(db: DatabaseInfo): DatabaseInfo { 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 { return {
...db, ...db,
tables: db.tables.map(table => ({ tables: db.tables.map(table => ({