Add eslint radix rule for parseInt
This commit is contained in:
parent
9e784034d3
commit
329cf77c81
42 changed files with 90 additions and 91 deletions
|
@ -168,7 +168,7 @@ import template from './mediaLibraryCreator.template.html';
|
|||
|
||||
function onRemoveClick(e) {
|
||||
const button = dom.parentWithClass(e.target, 'btnRemovePath');
|
||||
const index = parseInt(button.getAttribute('data-index'));
|
||||
const index = parseInt(button.getAttribute('data-index'), 10);
|
||||
const location = pathInfos[index].Path;
|
||||
const locationLower = location.toLowerCase();
|
||||
pathInfos = pathInfos.filter(p => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue