This commit is contained in:
2026-07-20 08:17:30 +08:00
parent 1290219077
commit 72a792d585
5 changed files with 35 additions and 19 deletions
+3 -2
View File
@@ -174,13 +174,14 @@ async function paginate(model, req, {
const totalPages = Math.ceil(count / limit);
// ← Append computed metadata
const computedMeta = computedAttributes.map(({ key, label, type, order: ord, filterable }) => ({
const computedMeta = computedAttributes.map(({ key, label, type, order: ord, filterable, hidden }) => ({
name: label ?? key,
type: type ?? 'text',
field: key,
order: ord ?? Infinity,
options: {},
filterable: filterable
filterable: filterable,
hidden: hidden ?? false,
}));
// ← Merge, sort, THEN strip order