Commit 8e3a52cf authored by Clement Ho's avatar Clement Ho

Fix eslint

parent e3395e3a
......@@ -13,7 +13,7 @@
conditions: [{
keyword: 'none',
url: 'assignee_id=0',
}]
}],
}, {
key: 'milestone',
type: 'string',
......@@ -25,7 +25,7 @@
}, {
keyword: 'upcoming',
url: 'milestone_title=%23upcoming',
}]
}],
}, {
key: 'label',
type: 'array',
......@@ -34,7 +34,7 @@
conditions: [{
keyword: 'none',
url: 'label_name[]=No+Label',
}]
}],
}];
function clearSearch(e) {
......@@ -48,7 +48,7 @@
function toggleClearSearchButton(e) {
const clearSearchButton = document.querySelector('.clear-search');
if (event.target.value) {
if (e.target.value) {
clearSearchButton.classList.remove('hidden');
} else {
clearSearchButton.classList.add('hidden');
......@@ -68,7 +68,8 @@
// Check if it matches edge conditions listed in validTokenKeys
let conditionIndex = 0;
const validCondition = validTokenKeys.filter(v => v.conditions && v.conditions.filter((c, index) => {
const validCondition = validTokenKeys
.filter(v => v.conditions && v.conditions.filter((c, index) => {
if (c.url === p) {
conditionIndex = index;
}
......@@ -170,7 +171,8 @@
let tokenPath = '';
if (token.wildcard && match.conditions) {
const condition = match.conditions.filter(c => c.keyword === token.value.toLowerCase())[0];
const condition = match.conditions
.filter(c => c.keyword === token.value.toLowerCase())[0];
if (condition) {
tokenPath = `${condition.url}`;
......
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