Skip to content

Commit

Permalink
fix: #1877, #1867 - mimeTypes and imageSizes no longer cause error in…
Browse files Browse the repository at this point in the history
… admin ui
  • Loading branch information
jmikrut committed Jan 15, 2023
1 parent d6d4906 commit b06ca70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export const addFieldStatePromise = async ({
id,
operation,
fields: field.fields,
data: data?.[field.name],
data: data?.[field.name] || {},
fullData,
parentPassesCondition: passesCondition,
path: `${path}${field.name}.`,
Expand Down
1 change: 1 addition & 0 deletions test/uploads/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export default buildConfig({
upload: {
staticURL: '/media',
staticDir: './media',
mimeTypes: ['image/png', 'image/jpg', 'image/jpeg', 'image/svg+xml'],
resizeOptions: {
width: 1280,
height: 720,
Expand Down

0 comments on commit b06ca70

Please sign in to comment.