Merge pull request #1417 from dpalou/MOBILE-2449

MOBILE-2449 menu: Fix custom menu items not displayed
main
Juan Leyva 2018-07-23 16:18:33 +02:00 committed by GitHub
commit 490f51ab09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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';
});
});
});
}