Skip to content

Commit 1fcf7a5

Browse files
committed
PB-370: Introduce upgrade mechanism for Page Builder content
1 parent 04bd4af commit 1fcf7a5

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

app/code/Magento/PageBuilder/Setup/Converters/FixFullWidthRowPadding.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ public function convert($value)
5050
$innerDiv = $row->querySelector(".row-full-width-inner");
5151
$innerDiv->addStyle("padding", $padding);
5252
}
53-
if ($fullWidthRows->count() > 0) {
54-
return $document->stripHtmlWrapperTags();
55-
} else {
56-
return $value;
57-
}
53+
return $fullWidthRows->count() > 0 ? $document->stripHtmlWrapperTags() : $value;
5854
}
5955
}

0 commit comments

Comments
 (0)