From 8bbdd141c666bbfa526227ebfb68311a6af43b36 Mon Sep 17 00:00:00 2001 From: roberto Date: Sun, 16 Jun 2024 17:27:19 +0200 Subject: [PATCH] fix call for tool function --- app/public/js/microdraw.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/public/js/microdraw.js b/app/public/js/microdraw.js index 778eb48..a1d2568 100644 --- a/app/public/js/microdraw.js +++ b/app/public/js/microdraw.js @@ -2154,11 +2154,13 @@ const Microdraw = (function () { for (const layer of layers) { let [source, name, opacity] = layer; opacity = parseFloat(opacity); - const dzi = await me.tools.layers.fetchDZI(source); + // eslint-disable-next-line no-await-in-loop, dot-notation + const dzi = await me.tools["layers"].fetchDZI(source); if (!dzi) { continue; } - me.tools.layers.addLayer(name, source, opacity * 100, dzi); + // eslint-disable-next-line dot-notation + me.tools["layers"].addLayer(name, source, opacity * 100, dzi); } }