Skip to content

Commit ec20648

Browse files
authored
Merge pull request #12 from Arkshine/fix-empty-icon
FIX: Error with undefined icon setting
2 parents cf2593e + 67593d9 commit ec20648

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascripts/discourse/components/custom-icon.gjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default class CustomIcon extends Component {
1414
}
1515

1616
get source() {
17-
return this.icon.trim();
17+
return this.icon?.trim();
1818
}
1919

2020
<template>

0 commit comments

Comments
 (0)