Commit 9c4ee8ee authored by Clement Ho's avatar Clement Ho

Fix eslint and rubocop

parent dbb50ed8
...@@ -20,8 +20,7 @@ ...@@ -20,8 +20,7 @@
} }
}, },
clicked(opts) { clicked(opts) {
const { $el, e } = opts; const { e } = opts;
const item = opts.selectedObj;
e.preventDefault(); e.preventDefault();
onSelect(); onSelect();
......
...@@ -391,7 +391,7 @@ import eventHub from './sidebar/event_hub'; ...@@ -391,7 +391,7 @@ import eventHub from './sidebar/event_hub';
if ($dropdown.hasClass('js-filter-bulk-update') || $dropdown.hasClass('js-issuable-form-dropdown')) { if ($dropdown.hasClass('js-filter-bulk-update') || $dropdown.hasClass('js-issuable-form-dropdown')) {
e.preventDefault(); e.preventDefault();
let isSelecting = (user.id !== selectedId); const isSelecting = (user.id !== selectedId);
selectedId = isSelecting ? user.id : selectedIdDefault; selectedId = isSelecting ? user.id : selectedIdDefault;
if (selectedId === gon.current_user_id) { if (selectedId === gon.current_user_id) {
......
...@@ -54,7 +54,6 @@ describe 'Filter issues', js: true, feature: true do ...@@ -54,7 +54,6 @@ describe 'Filter issues', js: true, feature: true do
create(:issue, project: project, title: "issue by assignee", milestone: milestone, author: user, assignees: [user]) create(:issue, project: project, title: "issue by assignee", milestone: milestone, author: user, assignees: [user])
create(:issue, project: project, title: "issue by assignee with searchTerm", milestone: milestone, author: user, assignees: [user]) create(:issue, project: project, title: "issue by assignee with searchTerm", milestone: milestone, author: user, assignees: [user])
issue = create(:issue, issue = create(:issue,
title: "Bug 2", title: "Bug 2",
project: project, project: project,
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
/* global BoardService */ /* global BoardService */
import Vue from 'vue'; import Vue from 'vue';
import '~/boards/models/user'; import '~/boards/models/assignee';
require('~/boards/models/list'); require('~/boards/models/list');
require('~/boards/models/label'); require('~/boards/models/label');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment