mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-26 12:51:52 +02: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");
|
img = img.replace(".png", ".svg");
|
||||||
}
|
}
|
||||||
//append image path, if img is only relative (does not start with / or https://)
|
//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;
|
img = this.imagePath + img;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user