mirror of
https://github.com/jbcr/core.git
synced 2026-04-01 05:42:19 +02:00
Merge pull request #668 from DjordyNelissen/master
Fix singleton contentType menu bug when no record exists
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user