fix(ui): fix image or icon selector
The imgUrl could be undefined if no image is attached to the API.
MODIFY
src/app/components/img-or-icon-selector/img-or-icon-selector.component.ts
src/app/components/img-or-icon-selector/img-or-icon-selector.component.ts
@@ -40,7 +40,9 @@ export class ImgOrIconSelectorComponent implements AfterViewInit, OnChanges {
) {}
ngOnChanges(changes: SimpleChanges): void {
- this.imgUrl = changes.imgUrl ? (changes.imgUrl.currentValue as string) : '';
+ this.imgUrl = changes.imgUrl.currentValue
+ ? (changes.imgUrl.currentValue as string)
+ : '';
this.isImage = this.imgUrl !== undefined || this.imgUrl !== '';
this.cdr.detectChanges();
this.resize();

fix(ui): fix image or icon selector

The imgUrl could be undefined if no image is attached to the API.