Files
klz-cables.com/.pnpm-store/v10/files/1c/070eb4a1a62235af2e063ff67254e90004175ae0a0506de8076c2634a0867008a7cd33ec6406ed4c68d913ec38ff6e2cd16337df262ebf2436629be3f9004e
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
567 B
Plaintext

import { deepCopyObjectSimple } from '../utilities/deepCopyObject.js';
export const getDefaultValue = async ({ defaultValue, locale, req, user, value })=>{
if (typeof value !== 'undefined') {
return value;
}
if (defaultValue && typeof defaultValue === 'function') {
return await defaultValue({
locale,
req,
user
});
}
if (typeof defaultValue === 'object') {
return deepCopyObjectSimple(defaultValue);
}
return defaultValue;
};
//# sourceMappingURL=getDefaultValue.js.map