change recent database

This commit is contained in:
Jan Prochazka
2021-03-25 13:31:24 +01:00
parent 638b04877d
commit e2dcfe9940
3 changed files with 5 additions and 4 deletions

View File

@@ -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;
});