Sentry fix: new items that were not in the previous set have new sort orders

This commit is contained in:
Ben Gotow 2019-06-23 18:13:53 -05:00
parent c3fb7bd8db
commit 33aba8f31f

View file

@ -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];