Skip to content

Commit

Permalink
Merge pull request #12 from Arkshine/fix-empty-icon
Browse files Browse the repository at this point in the history
FIX: Error with undefined icon setting
  • Loading branch information
angusmcleod authored Jul 15, 2024
2 parents cf2593e + 67593d9 commit ec20648
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascripts/discourse/components/custom-icon.gjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default class CustomIcon extends Component {
}

get source() {
return this.icon.trim();
return this.icon?.trim();
}

<template>
Expand Down

0 comments on commit ec20648

Please sign in to comment.