mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-21 02:25:59 +00:00
apps fixes
This commit is contained in:
@@ -19,9 +19,18 @@ export function getDictionaryDescription(
|
||||
connections,
|
||||
skipCheckSaved: boolean = false
|
||||
): DictionaryDescription {
|
||||
const conn = connections.find(x => x._id == conid);
|
||||
const conn = connections?.find(x => x._id == conid);
|
||||
|
||||
if (!conn) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const dbApps = filterAppsForDatabase(conn, database, apps);
|
||||
|
||||
if (!dbApps) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const cached = _.flatten(dbApps.map(x => x.dictionaryDescriptions || [])).find(
|
||||
x => x.pureName == table.pureName && x.schemaName == table.schemaName
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user