@3sc/common-component 0.0.216 → 0.0.218

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