mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
fix JS error if no image set in tree stalling projectmanager element-list and search
This commit is contained in:
parent
a6edaf6df6
commit
67dedb7705
@ -872,7 +872,7 @@ export class Et2Tree extends Et2WidgetWithSelectMixin(LitElement) implements Fin
|
||||
img = img.replace(".png", ".svg");
|
||||
}
|
||||
//append image path, if img is only relative (does not start with / or https://)
|
||||
if (!img.match(/^(\/|https?:\/\/)/))
|
||||
if (img && typeof img === "string" && !img.match(/^(\/|https?:\/\/)/))
|
||||
{
|
||||
img = this.imagePath + img;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user