@baleada/logic 0.20.30 → 0.20.31

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/lib/index.cjs CHANGED
@@ -2926,7 +2926,7 @@ class Pickable {
2926
2926
  if (replace === "all") {
2927
2927
  return toUnique(possiblePicks);
2928
2928
  }
2929
- const possibleWithoutDuplicates = createFilter((possiblePick) => !lazyCollections.find((pick) => pick === possiblePick)(this.picks || []))(possiblePicks);
2929
+ const possibleWithoutDuplicates = createFilter((possiblePick) => typeof lazyCollections.find((pick) => pick === possiblePick)(this.picks || []) !== "number")(possiblePicks);
2930
2930
  switch (replace) {
2931
2931
  case "none":
2932
2932
  return createConcat(this.picks || [], possibleWithoutDuplicates)([]);
package/lib/index.js CHANGED
@@ -2915,7 +2915,7 @@ class Pickable {
2915
2915
  if (replace === "all") {
2916
2916
  return toUnique(possiblePicks);
2917
2917
  }
2918
- const possibleWithoutDuplicates = createFilter((possiblePick) => !find((pick) => pick === possiblePick)(this.picks || []))(possiblePicks);
2918
+ const possibleWithoutDuplicates = createFilter((possiblePick) => typeof find((pick) => pick === possiblePick)(this.picks || []) !== "number")(possiblePicks);
2919
2919
  switch (replace) {
2920
2920
  case "none":
2921
2921
  return createConcat(this.picks || [], possibleWithoutDuplicates)([]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baleada/logic",
3
- "version": "0.20.30",
3
+ "version": "0.20.31",
4
4
  "description": "UI logic for the Baleada toolkit",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "lib/index.js",