Skip to content
Snippets Groups Projects
Commit 680f1307 authored by florian's avatar florian
Browse files

FIX: Correct check for existing non-empty config

parent 5c77282f
No related branches found
No related tags found
2 merge requests!89Release v0.10.0,!86F hide properties
......@@ -143,7 +143,9 @@ var prop_display = new function ($, getEntityName, getPropertyElements, getPrope
this.init = async function () {
console.log("initializing ext_prop_display.js");
const conf = await this.load_config();
if (("${BUILD_MODULE_EXT_PROPERTY_DISPLAY}" == "ENABLED") && conf) {
if (("${BUILD_MODULE_EXT_PROPERTY_DISPLAY}" == "ENABLED") && Object.keys(conf).length > 0) {
// There are properties to be hidden, so make this clear in HTML body
$("body").attr("data-hidden-properties", "true")
const allTypes = await this._getRecordTypes(conf);
var entities = this._get_entities_in_view();
this._unhide_properties(entities, conf, allTypes);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment