From 97e931e1650de38a9e498af55fe7056dcebbc5eb Mon Sep 17 00:00:00 2001 From: RubenPX Date: Wed, 20 Apr 2022 12:09:56 +0200 Subject: [PATCH] Action failed, fix issues --- ereuse_devicehub/static/js/api.js | 4 ++-- ereuse_devicehub/static/js/main.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ereuse_devicehub/static/js/api.js b/ereuse_devicehub/static/js/api.js index abf6df89..190e5d42 100644 --- a/ereuse_devicehub/static/js/api.js +++ b/ereuse_devicehub/static/js/api.js @@ -38,7 +38,7 @@ const Api = { */ async devices_add(lotID, listDevices) { const queryURL = `${API_URLS.devices_modify.replace("UUID", lotID) }?${ listDevices.map(deviceID => `id=${ deviceID}`).join("&")}`; - return await Api.doRequest(queryURL, "POST", null); + return Api.doRequest(queryURL, "POST", null); }, /** @@ -48,7 +48,7 @@ const Api = { */ async devices_remove(lotID, listDevices) { const queryURL = `${API_URLS.devices_modify.replace("UUID", lotID) }?${ listDevices.map(deviceID => `id=${ deviceID}`).join("&")}`; - return await Api.doRequest(queryURL, "DELETE", null); + return Api.doRequest(queryURL, "DELETE", null); }, /** diff --git a/ereuse_devicehub/static/js/main.js b/ereuse_devicehub/static/js/main.js index f8a97d3a..55a4951c 100644 --- a/ereuse_devicehub/static/js/main.js +++ b/ereuse_devicehub/static/js/main.js @@ -240,7 +240,7 @@ btnSelectAll.addEventListener("click", event => { const checkedState = event.target.checked; - tableListCheckboxes.forEach(ckeckbox => ckeckbox.checked = checkedState); + tableListCheckboxes.forEach(ckeckbox => {ckeckbox.checked = checkedState}); }) /**