Fix sonarjs no-small-switch
This commit is contained in:
parent
762573bef8
commit
76ed503c81
8 changed files with 29 additions and 46 deletions
|
@ -333,10 +333,9 @@ import autoFocuser from '../../components/autoFocuser';
|
|||
}
|
||||
|
||||
function onInputCommand(e) {
|
||||
switch (e.detail.command) {
|
||||
case 'search':
|
||||
e.preventDefault();
|
||||
Dashboard.navigate('search.html?collectionType=tv&parentId=' + params.topParentId);
|
||||
if (e.detail.command === 'search') {
|
||||
e.preventDefault();
|
||||
Dashboard.navigate('search.html?collectionType=tv&parentId=' + params.topParentId);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue