From 524ce3560c479b265b52d0cad210884b09e31cf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dami=C3=A1n=20Pumar?= Date: Tue, 26 Nov 2024 15:29:26 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20:bug:=20Send=20visible=5Foptions=20prop?= =?UTF-8?q?=20only=20when=20the=20questions=20has=20more=E2=80=A6=20(#5716?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix https://github.com/argilla-io/argilla/issues/5713 --- .../v1/infrastructure/repositories/QuestionRepository.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/argilla-frontend/v1/infrastructure/repositories/QuestionRepository.ts b/argilla-frontend/v1/infrastructure/repositories/QuestionRepository.ts index a6e47e0e1e..bbe72ec18f 100644 --- a/argilla-frontend/v1/infrastructure/repositories/QuestionRepository.ts +++ b/argilla-frontend/v1/infrastructure/repositories/QuestionRepository.ts @@ -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, + }, }; } }