@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
2 lines • 446 B
JavaScript
import{copy as e}from"../../../libs/i18n/copy.mjs";const t=t=>{let n=t.filter(e=>e.type===`builder`).map(e=>e.order),r=n.filter((e,t)=>n.indexOf(e)!==t);return r.length>0?{error:{type:`basic`,name:e(`server:core.error.saving.bricks`),message:e(`server:core.error.saving.page.duplicate.order`,{data:{order:r.join(`, `)}}),status:400},data:void 0}:{error:void 0,data:void 0}};export{t as default};
//# sourceMappingURL=check-duplicate-order.mjs.map