mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 09:23:28 +01:00
fix JS error if no image set in tree stalling projectmanager element-list and search
This commit is contained in:
parent
3ac3b7ee01
commit
c83fd49f20
@ -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