Merge pull request #668 from DjordyNelissen/master

Fix singleton contentType menu bug when no record exists
This commit is contained in:
Bob den Otter
2019-10-06 12:17:42 +02:00
committed by GitHub

View File

@@ -40,7 +40,7 @@ export default {
props: ['menu'],
methods: {
singleton(item) {
if (item.submenu !== null) {
if (item.submenu.length && item.submenu !== null) {
return item.submenu[0].editLink;
} else {
return item.link_new;