mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
fix
This commit is contained in:
parent
e84b76e4d1
commit
84b546db70
@ -77,6 +77,7 @@
|
||||
}
|
||||
|
||||
function isOnCurrentDb(currentDb, connections) {
|
||||
if (!currentDb || !connections) return false;
|
||||
const conn = connections.find(x => x._id == currentDb?.connection?._id);
|
||||
const db = conn?.databases?.find(x => x.name == currentDb?.name);
|
||||
return db && db[`useApp:${data.name}`];
|
||||
|
Loading…
Reference in New Issue
Block a user