mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-22 13:26:00 +00:00
change recent database
This commit is contained in:
@@ -8,7 +8,7 @@ currentDatabase.subscribe(value => {
|
||||
recentDatabases.update(list => {
|
||||
const res = [
|
||||
value,
|
||||
..._.compact(list).filter(x => x.name != value.name || x.connection?._id != value.connection?.id),
|
||||
..._.compact(list).filter(x => x.name != value.name || x.connection?._id != value.connection?._id),
|
||||
].slice(0, 10);
|
||||
return res;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user