Total Complexity | 1 |
Complexity/F | 1 |
Lines of Code | 23 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import template from './sw-meteor-page-context-menu-item.html.twig'; |
||
2 | import './sw-meteor-page-context-menu-item.scss'; |
||
3 | |||
4 | const { Component } = Shopware; |
||
|
|||
5 | |||
6 | Component.register('sw-meteor-page-context-menu-item', { |
||
7 | template, |
||
8 | |||
9 | props: { |
||
10 | menuEntry: { |
||
11 | type: Object, |
||
12 | required: true |
||
13 | } |
||
14 | }, |
||
15 | |||
16 | computed: { |
||
17 | iconClasses() { |
||
18 | return { |
||
19 | 'is--hidden': !this.menuEntry.hasCollapsedChildren |
||
20 | }; |
||
21 | } |
||
22 | } |
||
23 | }); |
||
24 |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.