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 = `