fix notification error on service

This commit is contained in:
lxsang
2020-08-06 23:15:38 +02:00
parent 2b67084392
commit 5ef3bfe7f0
2 changed files with 3 additions and 3 deletions

View File

@ -599,7 +599,7 @@ namespace OS {
): void {
const mt = this.meta();
let icon: string = undefined;
if (mt.icon) {
if (mt && mt.icon) {
icon = `${mt.path}/${mt.icon}`;
}
return announcer.trigger(t, {
@ -608,7 +608,7 @@ namespace OS {
data: {
m: m,
icon: icon,
iconclass: mt.iconclass,
iconclass: mt?mt.iconclass:undefined,
e: e,
},
});