Closed VisetDev closed 5 months ago
Trying to add a image storage field from a document property:
onFetch {profile_url: 'artists/imgs/profile/prof (1).jpg'} <--- entity
onFetch {profile_url: 'artists/imgs/profile/prof (1).jpg'}
const profile_url = buildProperty({ dataType: "string", name: "URL", id: "profile_url", propertyConfig: 'file_upload', storage: { storagePath: '/', }, });
results in:
TypeError: Cannot read properties of undefined (reading 'startsWith') at tde (StorageThumbnail.tsx:77:15) at ede (StorageThumbnail.tsx:58:49)
this is deployed to app.firecms.co (it also happens in dev) hope it's clear enough. tx
hi @fgatti675 ! found this: https://github.com/firecmsco/firecms/issues/550#issuecomment-1932606634
it has to do with the file type setting.
Trying to add a image storage field from a document property:
onFetch {profile_url: 'artists/imgs/profile/prof (1).jpg'}
<--- entityresults in:
TypeError: Cannot read properties of undefined (reading 'startsWith') at tde (StorageThumbnail.tsx:77:15) at ede (StorageThumbnail.tsx:58:49)
this is deployed to app.firecms.co (it also happens in dev) hope it's clear enough. tx