From 560ccdc131c0977bb1b52a237ae5e4acb66d81db Mon Sep 17 00:00:00 2001 From: Timm Fitschen <t.fitschen@indiscale.com> Date: Mon, 17 Feb 2020 14:03:27 +0100 Subject: [PATCH] BUG: unit missing on edit property --- src/core/js/edit_mode.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/js/edit_mode.js b/src/core/js/edit_mode.js index d7dcf93f..96ff91d2 100644 --- a/src/core/js/edit_mode.js +++ b/src/core/js/edit_mode.js @@ -542,7 +542,9 @@ var edit_mode = new function() { this.make_input("description", getEntityDescription(entity)), ]; if (getEntityRole(roleElem[0]) == "Property") { - for (const input of this.make_datatype_input(getEntityDatatype(entity), getEntityUnit(entity))) { + // TODO refactor getEntityUnit and use that + var unit = getEntityHeadingAttribute(entity, "unit"); + for (const input of this.make_datatype_input(getEntityDatatype(entity), unit)) { inputs.push(input); } temp.hide(); -- GitLab