Skip to content

Commit 524ce35

Browse files
authored
fix: 🐛 Send visible_options prop only when the questions has more… (#5716)
Fix #5713
1 parent f4f03bb commit 524ce35

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

argilla-frontend/v1/infrastructure/repositories/QuestionRepository.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,12 @@ export class QuestionRepository implements IQuestionRepository {
8080
return {
8181
title,
8282
description: newDescription,
83-
settings: settings as any,
83+
settings: {
84+
...(settings as any),
85+
visible_options: settings.shouldShowVisibleOptions
86+
? settings.visible_options
87+
: undefined,
88+
},
8489
};
8590
}
8691
}

0 commit comments

Comments
 (0)