Fix code style issues with ESLint

This commit is contained in:
Lint Action 2022-07-21 14:49:02 +00:00
parent a7e1daca79
commit 0d2edef437
1 changed files with 2 additions and 2 deletions

View File

@ -207,7 +207,7 @@ function removeLot() {
function removeTag() { function removeTag() {
const devices = TableController.getSelectedDevices(); const devices = TableController.getSelectedDevices();
const devices_id = devices.map(dev => $(dev).attr('data')); const devices_id = devices.map(dev => $(dev).attr("data"));
if (devices_id.length == 1) { if (devices_id.length == 1) {
const url = `/inventory/tag/devices/${devices_id[0]}/del/`; const url = `/inventory/tag/devices/${devices_id[0]}/del/`;
window.location.href = url; window.location.href = url;
@ -218,7 +218,7 @@ function removeTag() {
function addTag() { function addTag() {
const devices = TableController.getSelectedDevices(); const devices = TableController.getSelectedDevices();
const devices_id = devices.map(dev => $(dev).attr('data')); const devices_id = devices.map(dev => $(dev).attr("data"));
if (devices_id.length == 1) { if (devices_id.length == 1) {
$("#addingTagModal .pol").hide(); $("#addingTagModal .pol").hide();
$("#addingTagModal .btn-primary").show(); $("#addingTagModal .btn-primary").show();