Skip to content

Commit d658ecf

Browse files
authored
chore(ui5-icon): remove 'no name' warning (#11069)
1 parent 13b6a0d commit d658ecf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/main/src/Icon.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,7 @@ class Icon extends UI5Element implements IIcon {
269269
async onBeforeRendering() {
270270
const name = this.name;
271271
if (!name) {
272-
/* eslint-disable-next-line */
273-
return console.warn("Icon name property is required", this);
272+
return;
274273
}
275274

276275
let iconData: typeof ICON_NOT_FOUND | IconData | undefined = getIconDataSync(name);

0 commit comments

Comments
 (0)