@karmaniverous/entity-manager 2.1.2 → 2.1.3
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.
|
@@ -149,7 +149,7 @@ class EntityManager {
|
|
|
149
149
|
if (!(0, _isFunction2.default)(decode)) throw new Error(`no decode function defined on ${entityToken} entity key '${component}'`);
|
|
150
150
|
return {
|
|
151
151
|
...properties,
|
|
152
|
-
...(decode(index[component])?.groups ?? [])
|
|
152
|
+
...(decode(index[component] ?? '')?.groups ?? [])
|
|
153
153
|
};
|
|
154
154
|
}, {});
|
|
155
155
|
return (0, _sortedUniqBy2.default)((0, _sortBy2.default)((0, _entries2.default)(indexProperties), _ref3 => {
|
|
@@ -117,7 +117,10 @@ export class EntityManager {
|
|
|
117
117
|
`no decode function defined on ${entityToken} entity key '${component}'`
|
|
118
118
|
);
|
|
119
119
|
|
|
120
|
-
return {
|
|
120
|
+
return {
|
|
121
|
+
...properties,
|
|
122
|
+
...(decode(index[component] ?? '')?.groups ?? []),
|
|
123
|
+
};
|
|
121
124
|
}, {});
|
|
122
125
|
|
|
123
126
|
return _.sortedUniqBy(
|