@apolitical/component-library 8.11.2-oa.2 → 8.11.3-lrn-102

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/index.mjs CHANGED
@@ -6043,13 +6043,14 @@ function Un(e, t) {
6043
6043
  }
6044
6044
  }
6045
6045
  function Y4(e, t) {
6046
- return {
6047
- ...t,
6048
- pages: t.pages.map((n) => ({
6049
- ...n,
6050
- results: n.results.filter(({ id: r }) => r !== e)
6051
- }))
6052
- };
6046
+ for (const { results: n } of t.pages) {
6047
+ const r = n.findIndex(({ id: i }) => i === e);
6048
+ if (r !== -1) {
6049
+ n.splice(r, 1);
6050
+ break;
6051
+ }
6052
+ }
6053
+ return t;
6053
6054
  }
6054
6055
  function Vp(e) {
6055
6056
  var t;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apolitical/component-library",
3
- "version": "8.11.2-oa.2",
3
+ "version": "8.11.3-lrn-102",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {