MOBILE-2449 menu: Fix custom menu items not displayed

main
Dani Palou 2018-07-23 16:10:55 +02:00
parent 0889bf4540
commit f99d55905b
1 changed files with 5 additions and 2 deletions

View File

@ -139,7 +139,7 @@ export class CoreMainMenuProvider {
if (!data) {
// No valid label, ignore this entry.
return;
continue;
}
}
@ -151,7 +151,10 @@ export class CoreMainMenuProvider {
};
}
return result;
// Remove undefined values.
return result.filter((entry) => {
return typeof entry != 'undefined';
});
});
});
}