From 354f4fef0f9f4401c5236056c28751d80ced53ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20P=2E?= Date: Thu, 6 Jun 2024 10:19:49 +0200 Subject: [PATCH] More useless testing with properties --- bim.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/bim.js b/bim.js index fb431cf..3b97eda 100644 --- a/bim.js +++ b/bim.js @@ -106,15 +106,17 @@ BIM.setupHighligther = async function (model) { const li = document.querySelector('#selected-prop'); highlighter.events.select.onHighlight.add(async (property) => { - const expressID = property[Object.keys(property)[0]].entries().next().value[0]; - let testProp = await model.getProperties(expressID); + const set = property[Object.keys(property)[0]] + const expressID = Array.from(set.entries())[0][0]; + + let testProp = await model.getProperties(Number.parseInt(expressID)); // BAD just for testing if (testProp !== null) { li.innerHTML = ` `; }