Skip to content

Commit 94082ae

Browse files
committed
Fixed an issue where blocks with no field layout wouldn’t render if they had an error
1 parent d994957 commit 94082ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/assetbundles/src/FieldManipulator.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@
381381
}
382382

383383
// Now check for errors and update the tab if needed
384-
if ($pane.find('.field.has-errors').length > 0) {
384+
if ($pane.find('.field.has-errors').length > 0 && tabs.length > 1) {
385385
$tabA.addClass('error');
386386
$tabA.append(' <span data-icon="alert" />');
387387
}

0 commit comments

Comments
 (0)