@3sc/common-component 0.0.218 → 0.0.220

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 CHANGED
@@ -42150,17 +42150,18 @@ function kC({ tableProps: e, isDefaultConfig: t, gridPath: n, baseUrl: o }) {
42150
42150
  pageSize: (d = e == null ? void 0 : e.pagination) == null ? void 0 : d.rowPerPage
42151
42151
  });
42152
42152
  }, [r, n, o, t, (u = e == null ? void 0 : e.pagination) == null ? void 0 : u.rowPerPage]), c = Qt(() => {
42153
- const d = new Map(l.map((p) => [p.key, p]));
42154
- return s.map((p) => {
42155
- if (!p) return null;
42156
- const f = d == null ? void 0 : d.get(p == null ? void 0 : p.key);
42157
- return f ? {
42158
- ...f,
42159
- isHidden: p.isHidden,
42160
- sequenceId: p.sequenceId
42161
- } : null;
42162
- }).filter(Boolean);
42163
- }, [l]);
42153
+ const d = new Map(s.map((p) => [p.key, p]));
42154
+ return l.map((p) => {
42155
+ const f = d.get(p.key);
42156
+ return {
42157
+ ...p,
42158
+ ...f && {
42159
+ isHidden: f.isHidden,
42160
+ sequenceId: f.sequenceId
42161
+ }
42162
+ };
42163
+ });
42164
+ }, [l, s]);
42164
42165
  return console.log({ finalColumns: c }), It(() => {
42165
42166
  a({
42166
42167
  type: Ze.SET_GRID_DATA,