Skip to content

Commit 5bf6a55

Browse files
committed
change 'children' to const
1 parent a68e596 commit 5bf6a55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/stage-builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ function createInitialElementData(fields: ConfigFieldInterface): FieldDefaultsIn
245245
*/
246246
function getElementChildren(element: HTMLElement): HTMLElement[] {
247247
if (element.hasChildNodes()) {
248-
let children: any[] = [];
248+
const children: any[] = [];
249249
// Find direct children of the element
250250
_.forEach(element.childNodes, (child: HTMLElement) => {
251251
if (child.nodeType === Node.ELEMENT_NODE) {

0 commit comments

Comments
 (0)