@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/use/listSort.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arrai-innovations/reactive-helpers",
3
- "version": "10.0.1",
3
+ "version": "10.0.2",
4
4
  "description": "VueJS 3 utility composition functions to help manipulate objects and lists.",
5
5
  "main": "index.js",
6
6
  "type": "module",
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;