Files
klz-cables.com/.pnpm-store/v10/files/77/0f70413c82b7f3cdb4562e480798b9352c3eefc2c356ac1544a3337cf3e69e1b452f491018425220ff769ca0d138cc25779cca8731ae72ebcd899f169fc3d4
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

15 lines
600 B
Plaintext

import { isValidReactElement } from './isValidReactElement.js';
export const hasOptionLabelJSXElement = cellClientProps => {
const {
cellData,
field
} = cellClientProps;
if ((field?.type === 'select' || field?.type == 'radio') && Array.isArray(field?.options)) {
const matchingOption = field.options.find(option => typeof option === 'object' && option.value === cellData);
if (matchingOption && typeof matchingOption === 'object' && isValidReactElement(matchingOption.label)) {
return true;
}
}
return false;
};
//# sourceMappingURL=hasOptionLabelJSXElement.js.map