Skip to content

Commit f0e0286

Browse files
PS-692 [FIX] Ensures the Image field doesn't trigger a max size error when no max size is specified. (#729)
1 parent 9c2f8e0 commit f0e0286

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/components/image.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ Fliplet.FormBuilder.field('image', {
232232
return;
233233
}
234234

235-
if (img.width > $vm.customWidth || img.height > $vm.customHeight) {
235+
if (($vm.customWidth && img.width > $vm.customWidth) || ($vm.customHeight && img.height > $vm.customHeight)) {
236236
$vm.isImageSizeExceeded = true;
237237

238238
return;

0 commit comments

Comments
 (0)