Files
klz-cables.com/.pnpm-store/v10/files/9f/5cadc360b7065bf029dd09e1bd89054051fd3fc31126217ea600b99f47e7b1ae65be0eeec914eee32f75d26ff0889db759cb1c706740491710ee8f5c96d0af
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

18 lines
512 B
Plaintext

export function isRowCollapsed({
collapsedPrefs,
field,
previousRow,
row
}) {
if (previousRow && 'collapsed' in previousRow) {
return previousRow.collapsed ?? false;
}
// If previousFormState is `undefined`, check preferences
if (collapsedPrefs !== undefined) {
return collapsedPrefs.includes(row.id) // Check if collapsed in preferences
;
}
// If neither exists, fallback to `field.admin.initCollapsed`
return field.admin.initCollapsed;
}
//# sourceMappingURL=isRowCollapsed.js.map