fix: add height/width if imageSizes not specified

This commit is contained in:
Elliot DeNolf
2022-09-07 08:58:02 -07:00
parent e81da57f61
commit 8bd2a0e6c9

View File

@@ -92,6 +92,8 @@ const getBaseUploadFields = ({ config, collection }: Options): Field[] => {
filename,
mimeType,
filesize,
width,
height,
];
if (uploadOptions.mimeTypes) {
@@ -100,8 +102,6 @@ const getBaseUploadFields = ({ config, collection }: Options): Field[] => {
if (uploadOptions.imageSizes) {
uploadFields = uploadFields.concat([
width,
height,
{
name: 'sizes',
label: 'Sizes',