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

Fix eslint

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