From 804bbc47c3b3a5a4d80931b7d5d43a92d3b5c5dc Mon Sep 17 00:00:00 2001 From: Ziad-I <68874104+Ziad-I@users.noreply.github.com> Date: Mon, 24 Jun 2024 21:52:10 +0300 Subject: [PATCH] fix exception when global id is not included in csv data --- src/blenderbim/blenderbim/bim/data/webui/static/js/index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/blenderbim/blenderbim/bim/data/webui/static/js/index.js b/src/blenderbim/blenderbim/bim/data/webui/static/js/index.js index c111721f27..0af5fb1a77 100644 --- a/src/blenderbim/blenderbim/bim/data/webui/static/js/index.js +++ b/src/blenderbim/blenderbim/bim/data/webui/static/js/index.js @@ -156,6 +156,12 @@ function addTableElement(blenderId, csvData, filename) { table.on("rowSelected", function (row) { var index = row.getIndex(); // the guid of the object + + if (!index) { + console.log("No Global ID found"); + return; + } + // table id is usually "table-BlenderId" so blender id is always // after the first 6 characters var tableId = row.getTable().element.id.substr(6);