Skip to content

Commit

Permalink
Fix #840 (#841)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentC35 authored Dec 20, 2023
1 parent 0a38ab3 commit cd34786
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/use-lunatic/hooks/use-page-has-response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,13 @@ function isSubComponentsEmpty(
executeExpression: LunaticState['executeExpression']
): boolean {
for (const component of components) {
if ('responses' in component) {
for (const response of component.responses) {
if (!isEmpty(executeExpression(response.response.name))) {
return false;
}
}
}
if (
'response' in component &&
!isEmpty(executeExpression(component.response.name))
Expand Down

0 comments on commit cd34786

Please sign in to comment.