mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-06 03:46:39 +08:00
Merge pull request #5853 from aignatov-bio/ai-sci-8890-fix-navigator-error-in-console
Fix navigator console errors [SCI-8890]
This commit is contained in:
commit
e51054af48
1 changed files with 6 additions and 1 deletions
|
@ -63,9 +63,14 @@ export default {
|
|||
},
|
||||
computed: {
|
||||
hasChildren: function() {
|
||||
return !this.item.disabled && (this.item.has_children || this.children.length > 0);
|
||||
if (this.item.disabled) return false;
|
||||
if (this.item.has_children) return true;
|
||||
if (this.children && this.children.length > 0) return true;
|
||||
return false
|
||||
},
|
||||
sortedMenuItems: function() {
|
||||
if (!this.children) return [];
|
||||
|
||||
return this.children.sort((a, b) => {
|
||||
if (a.name.toLowerCase() < b.name.toLowerCase()) {
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Reference in a new issue