@mx-cartographer/experiences 5.3.1-alpha.mega6 → 5.3.1-alpha.mega8
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.es.js +7 -10
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -4498,7 +4498,7 @@ const cf = [
|
|
|
4498
4498
|
[d]: E
|
|
4499
4499
|
};
|
|
4500
4500
|
}, {});
|
|
4501
|
-
return A.map((a) => {
|
|
4501
|
+
return console.log(r), A.filter((a) => !r[a.account_guid]?.is_closed).map((a) => {
|
|
4502
4502
|
const c = r[a.account_guid], d = a.category_guid ? o[a.category_guid] : null, f = I[a.guid] ?? [];
|
|
4503
4503
|
return {
|
|
4504
4504
|
...a,
|
|
@@ -5169,9 +5169,9 @@ const Pe = () => {
|
|
|
5169
5169
|
zeroState: c = /* @__PURE__ */ e(Df, {})
|
|
5170
5170
|
}) => {
|
|
5171
5171
|
const { isLoading: d, sortedTransactions: f } = PA(), E = h.useMemo(() => [...r ? f : f.filter((x) => !x.accountIsClosed)], [f, r]);
|
|
5172
|
-
console.log(r, E
|
|
5172
|
+
console.log(r, [...E]);
|
|
5173
5173
|
const { setShowInsights: l, toggleSplit: v } = Pe(), { onEvent: u } = K(), H = (y) => {
|
|
5174
|
-
const x = E.find((w) => w.guid === y);
|
|
5174
|
+
const x = [...E].find((w) => w.guid === y);
|
|
5175
5175
|
if (x?.has_been_split) {
|
|
5176
5176
|
v(x.guid);
|
|
5177
5177
|
return;
|
|
@@ -5181,25 +5181,22 @@ const Pe = () => {
|
|
|
5181
5181
|
transaction_guid: y
|
|
5182
5182
|
}), n?.(y);
|
|
5183
5183
|
}, b = h.useRef(null), p = mo({
|
|
5184
|
-
count: E.length,
|
|
5184
|
+
count: [...E].length,
|
|
5185
5185
|
getScrollElement: () => b.current,
|
|
5186
|
-
estimateSize: (y) => Tr + (Nr(y, E) ? Yr : 0),
|
|
5186
|
+
estimateSize: (y) => Tr + (Nr(y, [...E]) ? Yr : 0),
|
|
5187
5187
|
overscan: 5
|
|
5188
5188
|
});
|
|
5189
5189
|
return h.useEffect(() => p.measure(), [E]), h.useEffect(() => l(o), [o]), /* @__PURE__ */ e(rA, { children: /* @__PURE__ */ e(L, { height: t, overflow: "auto", ref: b, width: a, children: /* @__PURE__ */ s(
|
|
5190
5190
|
L,
|
|
5191
5191
|
{
|
|
5192
|
-
height: (
|
|
5193
|
-
// set the height to auto when there are no transactions so the zero state isn't set to 0
|
|
5194
|
-
p.getVirtualItems().length === 0 ? "auto" : p.getTotalSize()
|
|
5195
|
-
),
|
|
5192
|
+
height: p.getVirtualItems().length === 0 ? "auto" : p.getTotalSize(),
|
|
5196
5193
|
position: "relative",
|
|
5197
5194
|
width: "100%",
|
|
5198
5195
|
children: [
|
|
5199
5196
|
(d || I) && i,
|
|
5200
5197
|
!d && !I && p.getVirtualItems().length === 0 && c,
|
|
5201
5198
|
!d && !I && p.getVirtualItems().length > 0 && p.getVirtualItems().map((y) => {
|
|
5202
|
-
const x = E[y.index], w = Nr(y.index, E), D = jf(y.index, E), j = Tr + (w ? Yr : 0);
|
|
5199
|
+
const x = [...E][y.index], w = Nr(y.index, [...E]), D = jf(y.index, [...E]), j = Tr + (w ? Yr : 0);
|
|
5203
5200
|
return /* @__PURE__ */ s(
|
|
5204
5201
|
L,
|
|
5205
5202
|
{
|