Skip to content

Commit

Permalink
fix: 🐛 Send visible_options prop only when the questions has more… (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
damianpumar committed Nov 27, 2024
1 parent ea27b9d commit 250a59d
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,12 @@ export class QuestionRepository implements IQuestionRepository {
return {
title,
description: newDescription,
settings: settings as any,
settings: {
...(settings as any),
visible_options: settings.shouldShowVisibleOptions
? settings.visible_options
: undefined,
},
};
}
}

0 comments on commit 250a59d

Please sign in to comment.