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 authored Nov 26, 2024
1 parent f4f03bb commit 524ce35
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 524ce35

Please sign in to comment.