Skip to content

Commit

Permalink
ItemStatisticsHeader.createIconEl: check if param has optional getIco…
Browse files Browse the repository at this point in the history
…nSrc function #2592
  • Loading branch information
ashklianko authored and alansemenov committed May 24, 2022
1 parent 53243cb commit d7ffcda
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class ItemStatisticsHeader
private createIconEl(item: ViewItem) {
let iconEl: Element;

if (item.getIconSrc()) {
if (item.getIconSrc && item.getIconSrc()) {
iconEl = new ImgEl(item.getIconSrc());
} else if (item.getIconUrl()) {
let size = this.getIconSize(item);
Expand Down

0 comments on commit d7ffcda

Please sign in to comment.