From 8a37217a38edc2759fd9b854eeab1c3a55805dd2 Mon Sep 17 00:00:00 2001 From: Lint Action Date: Wed, 20 Apr 2022 10:12:59 +0000 Subject: [PATCH] Fix code style issues with ESLint --- ereuse_devicehub/static/js/main_inventory.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ereuse_devicehub/static/js/main_inventory.js b/ereuse_devicehub/static/js/main_inventory.js index 36ba13fd..34dd42c3 100644 --- a/ereuse_devicehub/static/js/main_inventory.js +++ b/ereuse_devicehub/static/js/main_inventory.js @@ -201,7 +201,7 @@ async function processSelectedDevices() { manage(event, lotID, deviceListID) { event.preventDefault(); const srcElement = event.srcElement.parentElement.children[0] - const indeterminate = srcElement.indeterminate; + const {indeterminate} = srcElement; const checked = !srcElement.checked; const found = this.list.filter(list => list.lotID == lotID)[0]; @@ -340,8 +340,8 @@ async function processSelectedDevices() { } else { doc.children[0].indeterminate = true; } - doc.children[0].addEventListener('mouseup', (ev) => actions.manage(ev, lotID, selectedDevicesIDs)); - doc.children[1].addEventListener('mouseup', (ev) => actions.manage(ev, lotID, selectedDevicesIDs)); + doc.children[0].addEventListener("mouseup", (ev) => actions.manage(ev, lotID, selectedDevicesIDs)); + doc.children[1].addEventListener("mouseup", (ev) => actions.manage(ev, lotID, selectedDevicesIDs)); elementTarget.append(doc); }