refresh collectionTree rowMap after row is added

It prevents the trash row from getting wrong offset and overlapping
with the row above it
This commit is contained in:
abaevbog 2024-01-17 17:22:28 -05:00 committed by Dan Stillman
parent be3d7c95f9
commit 4a096665a0

View file

@ -989,6 +989,7 @@ var CollectionTree = class CollectionTree extends LibraryTree {
}
}
}
this._refreshRowMap();
}
else if (action == 'refresh' && type == 'trash') {
// We need to update the trash's status (full or empty), and if empty,