Files
klz-cables.com/.pnpm-store/v10/files/10/4573d4c14b6a5744dc446406b0036f462ed295cfc34e1bfe53f385349edab3f6123bed68f311fbcd23e9eb81c0183e8656444fbdda8d87c95bf447e946c3be
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

25 lines
937 B
Plaintext

import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { toWords } from 'payload/shared';
import React, { Fragment } from 'react';
export const QueryPresetsAccessCell = ({
cellData
}) => {
// first sort the operations in the order they should be displayed
const operations = ['read', 'update', 'delete'];
return /*#__PURE__*/_jsx("p", {
children: operations.reduce((acc, operation, index) => {
const operationData = cellData?.[operation];
if (operationData && operationData.constraint) {
acc.push(/*#__PURE__*/_jsxs(Fragment, {
children: [/*#__PURE__*/_jsxs("span", {
children: [/*#__PURE__*/_jsx("strong", {
children: toWords(operation)
}), ": ", toWords(operationData.constraint)]
}), index !== operations.length - 1 && ', ']
}, operation));
}
return acc;
}, [])
});
};
//# sourceMappingURL=index.js.map