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
1 line
974 B
Plaintext
1 line
974 B
Plaintext
{"version":3,"file":"getCustomDocumentViewByKey.js","names":["getCustomDocumentViewByKey","views","customViewKey","edit","Component"],"sources":["../../../src/views/Document/getCustomDocumentViewByKey.tsx"],"sourcesContent":["import type { EditViewComponent, SanitizedCollectionConfig, SanitizedGlobalConfig } from 'payload'\n\nexport const getCustomDocumentViewByKey = (\n views:\n | SanitizedCollectionConfig['admin']['components']['views']\n | SanitizedGlobalConfig['admin']['components']['views'],\n customViewKey: string,\n): EditViewComponent => {\n return typeof views?.edit?.[customViewKey] === 'object' &&\n 'Component' in views.edit[customViewKey]\n ? views?.edit?.[customViewKey].Component\n : null\n}\n"],"mappings":"AAEA,OAAO,MAAMA,0BAAA,GAA6BA,CACxCC,KAAA,EAGAC,aAAA;EAEA,OAAO,OAAOD,KAAA,EAAOE,IAAA,GAAOD,aAAA,CAAc,KAAK,YAC7C,eAAeD,KAAA,CAAME,IAAI,CAACD,aAAA,CAAc,GACtCD,KAAA,EAAOE,IAAA,GAAOD,aAAA,CAAc,CAACE,SAAA,GAC7B;AACN","ignoreList":[]} |