diff --git a/src/widjets-display-territory-tzcld.js b/src/widjets-display-territory-tzcld.js index 26f65255d8f332f2ed3aa3d58c824f3113e2ad28..9fb854a4797e04bc87b6953467669690e849ec91 100644 --- a/src/widjets-display-territory-tzcld.js +++ b/src/widjets-display-territory-tzcld.js @@ -33,10 +33,19 @@ import("./utils.js").then((utils) => { } } let render = ``; + let html_region = '' ; + let html_step_state = '' ; + let html_kind = '' ; + if (region) { + html_region = `<div class="region segment tag color-fourth">${await region.name}</div>`; + } + if (step_state) { + html_step_state = `<div class="region segment tag color-fourth">${await step_state.name}</div>`; + } + if (kind) { + html_kind = `<div class="region segment tag color-fourth">${await kind.name}</div>`; + } - let html_region = `<div class="region segment tag color-fourth">${await region.name}</div>`; - let html_step_state = `<div class="region segment tag color-fourth">${await step_state.name}</div>`; - let html_kind = `<div class="region segment tag color-fourth">${await kind.name}</div>`; render += `<div class="territoires-mini-card-2 segment full shadow margin-top-small"> <div class="segment width-25 padding-small padding-top-medium"> <solid-display class="segment full" bind-resources="" label-logo="" fields="logo" class-logo="segment full" widget-logo="orbit-user-avatar" data-src="${await tzcldprofile.community['@id']}" solid-resource=""></solid-display>