Skip to content

Commit b0ac712

Browse files
committed
Allow for empty component update to be passing validation
1 parent ba84eed commit b0ac712

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

Controller/Index/Html.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,15 +116,11 @@ private function getComponentUpdates(array $updates, LayoutInterface $layout): a
116116
continue;
117117
}
118118

119-
if (!isset($update['update'])) {
120-
continue;
121-
}
122-
123119
$block = $this->getBlock($layout, $update['blockName']);
124120
$componentUpdate = $this->componentUpdateFactory->create([
125121
'block' => $block,
126122
'component' => $this->componentRegistry->getComponentFromBlock($block),
127-
'componentData' => $update['update'],
123+
'componentData' => $update['update'] ?? null,
128124
]);
129125

130126
$componentUpdates[$updateIndex] = $componentUpdate;

0 commit comments

Comments
 (0)