Skip to content

Commit

Permalink
“Fix” misused repeat label definition
Browse files Browse the repository at this point in the history
  • Loading branch information
eyelidlessness committed Jul 2, 2024
1 parent 8176705 commit 75675dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/web-forms/src/components/RepeatInstance.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ const label = computed(() => {
// Use RepeatRangeNode label if it's there
// TODO/sk: use state.label.asString
if(props.instance.parent.definition.bodyElement.label?.children[0]?.stringValue){
return `${props.instance.parent.definition.bodyElement.label?.children[0].stringValue}`;
if(props.instance.parent.definition.bodyElement.label?.chunks[0]?.stringValue){
return `${props.instance.parent.definition.bodyElement.label?.chunks[0].stringValue}`;
}
return `Repeat Item`;
Expand Down

0 comments on commit 75675dc

Please sign in to comment.