From 09106780aa6143f729ebd16570bf94b8ad3bce45 Mon Sep 17 00:00:00 2001 From: Sanchit Jain <171220040@nitdelhi.ac.in> Date: Sat, 3 Oct 2020 14:13:33 +0530 Subject: [PATCH] Id value issue for radio groups (#895) Fixes: #661 There was issue related to id value while creating new radio group options other than the default ones. And as said I, the id field is not needed at all, but some old config still has the id field. So since ID field is not required , I have removed it. Which solves the issue. --- app/client/src/mockResponses/WidgetConfigResponse.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/client/src/mockResponses/WidgetConfigResponse.tsx b/app/client/src/mockResponses/WidgetConfigResponse.tsx index 9db7797085..8cdc971899 100644 --- a/app/client/src/mockResponses/WidgetConfigResponse.tsx +++ b/app/client/src/mockResponses/WidgetConfigResponse.tsx @@ -155,8 +155,8 @@ const WidgetConfigResponse: WidgetConfigReducerState = { columns: 3, label: "", options: [ - { id: "1", label: "Male", value: "M" }, - { id: "2", label: "Female", value: "F" }, + { label: "Male", value: "M" }, + { label: "Female", value: "F" }, ], defaultOptionValue: "M", widgetName: "RadioGroup",