@arrai-innovations/reactive-helpers 10.0.1 → 10.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/use/listSort.js +2 -1
package/package.json
CHANGED
package/use/listSort.js
CHANGED
|
@@ -110,6 +110,8 @@ export function useListSort({ parentState, orderByRules, sortThrottleWait = defa
|
|
|
110
110
|
removeSortCriteria(removedKey);
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
+
assignReactiveObject(state.order, cloneDeep(parentState.order));
|
|
114
|
+
assignReactiveObject(state.objectsInOrder, cloneDeep(parentState.objectsInOrder));
|
|
113
115
|
return;
|
|
114
116
|
}
|
|
115
117
|
const { removedKeys, addedKeys } = keyDiff(Object.keys(parentState.objects), Object.keys(state.sortCriteria));
|
|
@@ -131,7 +133,6 @@ export function useListSort({ parentState, orderByRules, sortThrottleWait = defa
|
|
|
131
133
|
|
|
132
134
|
function sortWatch() {
|
|
133
135
|
if (!state.orderByRules || !state.orderByRules.length) {
|
|
134
|
-
console.log("sortWatch no orderByRules");
|
|
135
136
|
assignReactiveObject(state.order, cloneDeep(parentState.order));
|
|
136
137
|
assignReactiveObject(state.objectsInOrder, cloneDeep(parentState.objectsInOrder));
|
|
137
138
|
return;
|