Skip to content

Commit

Permalink
fix call for tool function
Browse files Browse the repository at this point in the history
  • Loading branch information
r03ert0 committed Jun 16, 2024
1 parent 08f3acc commit 8bbdd14
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/public/js/microdraw.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 8bbdd14

Please sign in to comment.