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
1022 B
Plaintext
1 line
1022 B
Plaintext
{"version":3,"file":"createNestedClientFieldPath.js","names":["fieldAffectsData","createNestedClientFieldPath","parentPath","field","name"],"sources":["../../../src/forms/Form/createNestedClientFieldPath.ts"],"sourcesContent":["'use client'\nimport type { ClientField } from 'payload'\n\nimport { fieldAffectsData } from 'payload/shared'\n\nexport const createNestedClientFieldPath = (parentPath: string, field: ClientField): string => {\n if (parentPath) {\n if (fieldAffectsData(field) && field.name) {\n return `${parentPath}.${field.name}`\n }\n return parentPath\n }\n\n if (fieldAffectsData(field)) {\n return field.name\n }\n\n return ''\n}\n"],"mappings":"AAAA;;AAGA,SAASA,gBAAgB,QAAQ;AAEjC,OAAO,MAAMC,2BAAA,GAA8BA,CAACC,UAAA,EAAoBC,KAAA;EAC9D,IAAID,UAAA,EAAY;IACd,IAAIF,gBAAA,CAAiBG,KAAA,KAAUA,KAAA,CAAMC,IAAI,EAAE;MACzC,OAAO,GAAGF,UAAA,IAAcC,KAAA,CAAMC,IAAI,EAAE;IACtC;IACA,OAAOF,UAAA;EACT;EAEA,IAAIF,gBAAA,CAAiBG,KAAA,GAAQ;IAC3B,OAAOA,KAAA,CAAMC,IAAI;EACnB;EAEA,OAAO;AACT","ignoreList":[]} |