Files
klz-cables.com/.pnpm-store/v10/files/3c/ce0efc0ad0abe7b355bbb2edc6cd98f6d2ca06fe6e02d28bdfb3d0ef7a83f7d0daf15143fbab46f378d7be55ede726dc29d52986ebb86ca7a78afe19c5a90b
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

1 line
1000 B
Plaintext

{"version":3,"file":"filterOutUploadFields.js","names":["filterOutUploadFields","fields","baseUploadFieldNames","filter","field","includes","name"],"sources":["../../src/utilities/filterOutUploadFields.ts"],"sourcesContent":["import type { FieldWithPathClient } from 'payload'\n\nexport const filterOutUploadFields = (fields: FieldWithPathClient[]): FieldWithPathClient[] => {\n // List of reserved upload field names\n const baseUploadFieldNames = [\n 'file',\n 'mimeType',\n 'thumbnailURL',\n 'width',\n 'height',\n 'filesize',\n 'filename',\n 'url',\n 'focalX',\n 'focalY',\n 'sizes',\n ]\n\n return fields.filter((field) => !baseUploadFieldNames.includes('name' in field && field.name))\n}\n"],"mappings":"AAEA,OAAO,MAAMA,qBAAA,GAAyBC,MAAA;EACpC;EACA,MAAMC,oBAAA,GAAuB,CAC3B,QACA,YACA,gBACA,SACA,UACA,YACA,YACA,OACA,UACA,UACA,QACD;EAED,OAAOD,MAAA,CAAOE,MAAM,CAAEC,KAAA,IAAU,CAACF,oBAAA,CAAqBG,QAAQ,CAAC,UAAUD,KAAA,IAASA,KAAA,CAAME,IAAI;AAC9F","ignoreList":[]}