@fjell/core 4.4.44 → 4.4.47
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/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/key/KUtils.ts +4 -1
package/dist/index.js
CHANGED
package/package.json
CHANGED
package/src/key/KUtils.ts
CHANGED
|
@@ -382,7 +382,10 @@ export const itemKeyToLocKeyArray =
|
|
|
382
382
|
let lka: Array<LocKey<L1 | L2 | L3 | L4 | L5>> = [];
|
|
383
383
|
if (isComKey(ik)) {
|
|
384
384
|
const ck = ik as ComKey<S, L1, L2, L3, L4, L5>;
|
|
385
|
-
|
|
385
|
+
// For composite keys, return only the parent location keys (ck.loc)
|
|
386
|
+
// Location arrays are ordered child-to-parent per KTA hierarchy: ['child', 'parent', 'grandparent']
|
|
387
|
+
// This is used for aggregation queries where we want to find sibling items at the same location
|
|
388
|
+
lka = [...ck.loc];
|
|
386
389
|
} else {
|
|
387
390
|
const pk = ik as PriKey<S>;
|
|
388
391
|
lka = [{ kt: pk.kt, lk: pk.pk } as unknown as LocKey<L1 | L2 | L3 | L4 | L5>];
|