Commit 313e7058 authored by Clement Ho's avatar Clement Ho

Fix eslint

parent 729562dd
...@@ -24,7 +24,7 @@ export default class TemplateSelector { ...@@ -24,7 +24,7 @@ export default class TemplateSelector {
search: { search: {
fields: ['name'], fields: ['name'],
}, },
clicked: (options) => this.fetchFileTemplate(options), clicked: options => this.fetchFileTemplate(options),
text: item => item.name, text: item => item.name,
}); });
} }
......
...@@ -44,7 +44,6 @@ ...@@ -44,7 +44,6 @@
return $el.text(); return $el.text();
}, },
clicked: (options) => { clicked: (options) => {
const selected = options.selectedObj;
const $link = options.$el; const $link = options.$el;
if (!$link.data('revert')) { if (!$link.data('revert')) {
......
...@@ -53,9 +53,9 @@ ...@@ -53,9 +53,9 @@
onHide(); onHide();
} }
}, },
clicked(options) { clicked(opts) {
const { $el, e } = options; const { $el, e } = opts;
const item = options.selectedObj; const item = opts.selectedObj;
e.preventDefault(); e.preventDefault();
......
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