Skip to content

Commit 084813b

Browse files
committed
ACP2E-2086: Admin Panel Slow
- improved required-entry js validation
1 parent baa197c commit 084813b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/js/form/element/validator-rules-mixin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ define([
234234
var allFilled;
235235

236236
// Validation only for margins and paddings
237-
if (typeof value === 'object' && !!(value.padding || value.margin)) {
237+
if (value !== null && typeof value === 'object' && !!(value.padding || value.margin)) {
238238
allFilled = true;
239239

240240
_.flatten(_.map(value, _.values)).forEach(function (val) {

0 commit comments

Comments
 (0)