mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-21 05:56:00 +00:00
apps fixes
This commit is contained in:
@@ -29,5 +29,5 @@ export async function saveDbToApp(conid: string, database: string, app: string)
|
||||
|
||||
export function filterAppsForDatabase(connection, database: string, $apps): ApplicationDefinition[] {
|
||||
const db = (connection?.databases || []).find(x => x.name == database);
|
||||
return $apps.filter(app => db && db[`useApp:${app.name}`]);
|
||||
return $apps?.filter(app => db && db[`useApp:${app.name}`]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user