mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-22 15:15:12 +08:00
Sentry fix: new items that were not in the previous set have new sort orders
This commit is contained in:
parent
c3fb7bd8db
commit
33aba8f31f
1 changed files with 2 additions and 0 deletions
|
@ -171,6 +171,8 @@ export class QuerySubscription<T extends Model> {
|
|||
};
|
||||
|
||||
_itemSortOrderHasChanged(old, updated) {
|
||||
if (!old || !updated) return true;
|
||||
|
||||
for (const descriptor of this._query.orderSortDescriptors()) {
|
||||
const oldSortValue = old[descriptor.attr.modelKey];
|
||||
const updatedSortValue = updated[descriptor.attr.modelKey];
|
||||
|
|
Loading…
Reference in a new issue