Skip to content

Commit 342c17f

Browse files
authored
ENGCOM-5999: Correctly check if the type is undefined #24852
2 parents 06fe76e + cdc4057 commit 342c17f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/web/mage/decorate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
items;
2626

2727
if (list.length > 0) {
28-
items = typeof isRecursive === undefined || isRecursive ?
28+
items = typeof isRecursive === 'undefined' || isRecursive ?
2929
list.find('li') :
3030
list.children();
3131
items.decorate('generic', ['odd', 'even', 'last']);

0 commit comments

Comments
 (0)