Files
klz-cables.com/.pnpm-store/v10/files/47/1efadbe762f6f5aadfbec8aaff7acfabbbaeef99c0f0aaee663537b1366d3129dadc51312f6b4e4e067fa0bc27f00d43a75f434b0b305bdda3c782ac7d6950
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

19 lines
883 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.rawColumnToInternalColumn = exports.objIfExists = void 0;
const table_constants_1 = require("../utils/table-constants");
const objIfExists = (key, val) => {
if (!val) {
return {};
}
return {
[key]: val,
};
};
exports.objIfExists = objIfExists;
const rawColumnToInternalColumn = (column) => {
var _a;
return (Object.assign(Object.assign(Object.assign(Object.assign({ name: column.name, title: (_a = column.title) !== null && _a !== void 0 ? _a : column.name }, (0, exports.objIfExists)('color', column.color)), (0, exports.objIfExists)('maxLen', column.maxLen)), (0, exports.objIfExists)('minLen', column.minLen)), { alignment: column.alignment || table_constants_1.DEFAULT_ROW_ALIGNMENT }));
};
exports.rawColumnToInternalColumn = rawColumnToInternalColumn;