Skip to content

Commit

Permalink
Holarchy view: interactive element text
Browse files Browse the repository at this point in the history
Remove the message that indicates that a level (local/regional/national)
has no interactive elements associated with it.

Closes #883
  • Loading branch information
Erik van Velzen authored and Erikvv committed Aug 25, 2023
1 parent 2211540 commit c6b8ac1
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions frontend/components/Blocks/SectionBlock/ContentColumn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export default function ContentColumn({
case "multi_select":
const defaultValueArray = defaultValue && defaultValue.split(",");
const targetValueArray = targetValue && targetValue.split(",");
const savedValueArray = savedValue && savedValue.split(",");
const savedValueArray = savedValue && savedValue.split(",");
const visible = content.value.visible;
let options;

Expand All @@ -128,7 +128,7 @@ export default function ContentColumn({
defaultValueArray?.includes(option.label)
);
}

} else {
options = content.value.options.filter(
option =>
Expand Down Expand Up @@ -190,9 +190,7 @@ export default function ContentColumn({
}

return (
<div
data-empty="Er zijn er geen interactieve elementen in te stellen op dit niveau."
className="before:empty:content-[attr(data-empty)]">
<div>
{content.map((ct, index) => {
if (ct.type && ct.value && ct.type === "interactive_input" && ct.value.visible) {
return (
Expand Down

0 comments on commit c6b8ac1

Please sign in to comment.