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
16 lines
413 B
Plaintext
16 lines
413 B
Plaintext
export function isColumnActive({
|
|
accessor,
|
|
activeColumnsIndices,
|
|
column,
|
|
columns
|
|
}) {
|
|
if (column) {
|
|
return column.active;
|
|
} else if (columns && Array.isArray(columns) && columns.length > 0) {
|
|
return Boolean(columns.find(col => col.accessor === accessor)?.active);
|
|
} else if (activeColumnsIndices.length < 4) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
//# sourceMappingURL=isColumnActive.js.map |