mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-24 15:15:59 +00:00
fix
This commit is contained in:
@@ -77,6 +77,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function isOnCurrentDb(currentDb, connections) {
|
function isOnCurrentDb(currentDb, connections) {
|
||||||
|
if (!currentDb || !connections) return false;
|
||||||
const conn = connections.find(x => x._id == currentDb?.connection?._id);
|
const conn = connections.find(x => x._id == currentDb?.connection?._id);
|
||||||
const db = conn?.databases?.find(x => x.name == currentDb?.name);
|
const db = conn?.databases?.find(x => x.name == currentDb?.name);
|
||||||
return db && db[`useApp:${data.name}`];
|
return db && db[`useApp:${data.name}`];
|
||||||
|
|||||||
Reference in New Issue
Block a user