@local-civics/mgmt-ui 0.1.199 → 0.1.200
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 +9 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1135,12 +1135,21 @@ var __spreadValues$c = (a, b) => {
|
|
|
1135
1135
|
};
|
|
1136
1136
|
var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
|
|
1137
1137
|
function Table$c(props) {
|
|
1138
|
+
console.group("Class Table Data Check");
|
|
1139
|
+
console.log("1. Raw props:", props);
|
|
1140
|
+
console.log("2. Raw items from prop.items:", props.items);
|
|
1141
|
+
if (props.items.length > 0) {
|
|
1142
|
+
console.log("3. Type of lastActivity (first item):", typeof props.items[0].lastActivity, props.items[0].lastActivity);
|
|
1143
|
+
}
|
|
1138
1144
|
const preparedItems = React.useMemo(() => {
|
|
1139
1145
|
return props.items.map((item) => __spreadProps$8(__spreadValues$c({}, item), {
|
|
1140
1146
|
fullName: item.givenName && item.familyName ? `${item.givenName} ${item.familyName}`.toLowerCase() : item.email.toLowerCase()
|
|
1141
1147
|
}));
|
|
1142
1148
|
}, [props.items]);
|
|
1149
|
+
console.log("4. Prepared items (before sort hook):", preparedItems);
|
|
1150
|
+
console.groupEnd();
|
|
1143
1151
|
const { items: sortedItems, requestSort, sortConfig } = useSortableData(preparedItems);
|
|
1152
|
+
console.log("5. Final sorted items:", sortedItems);
|
|
1144
1153
|
if (props.items.length === 0) {
|
|
1145
1154
|
return /* @__PURE__ */ React.createElement(
|
|
1146
1155
|
PlaceholderBanner,
|