Skip to content

Commit 9bce7dc

Browse files
clean license warnings from empty items
1 parent 73af00d commit 9bce7dc

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

packages/devextreme/js/__internal/core/license/license_warnings.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,12 @@ export function logLicenseWarning(
7070

7171
const pushToLastGroup = (...items: string[]): void => {
7272
const lastGroup = warnings[warnings.length - 1];
73+
const notEmptyItems = items.filter((item) => !!item);
74+
7375
if (lastGroup.length === 1) {
74-
lastGroup.push('', ...items);
76+
lastGroup.push('', ...notEmptyItems);
7577
} else {
76-
lastGroup.push(...items);
78+
lastGroup.push(...notEmptyItems);
7779
}
7880
};
7981

0 commit comments

Comments
 (0)