Fix sonarjs no-collapsible-if
This commit is contained in:
@@ -68,10 +68,8 @@ export function showLayoutMenu (button, currentLayout, views) {
|
||||
cancelable: false
|
||||
}));
|
||||
|
||||
if (!dispatchEvent) {
|
||||
if (window.$) {
|
||||
$(button).trigger('layoutchange', [id]);
|
||||
}
|
||||
if (!dispatchEvent && window.$) {
|
||||
$(button).trigger('layoutchange', [id]);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user