diff --git a/app/client/src/components/designSystems/blueprint/RadioGroupComponent.tsx b/app/client/src/components/designSystems/blueprint/RadioGroupComponent.tsx index 1a51481f89..a6bc3d8b82 100644 --- a/app/client/src/components/designSystems/blueprint/RadioGroupComponent.tsx +++ b/app/client/src/components/designSystems/blueprint/RadioGroupComponent.tsx @@ -58,7 +58,7 @@ class RadioGroupComponent extends React.Component { className={this.props.isLoading ? "bp3-skeleton" : ""} label={option.label} value={option.value} - key={option.id} + key={option.value} /> ); })} diff --git a/app/client/src/utils/Validators.ts b/app/client/src/utils/Validators.ts index 46441b0dee..0f57f425f5 100644 --- a/app/client/src/utils/Validators.ts +++ b/app/client/src/utils/Validators.ts @@ -365,7 +365,12 @@ export const VALIDATORS: Record = { } const hasOptions = _.every(parsed, (datum: { label: any; value: any }) => { if (_.isObject(datum)) { - return _.isString(datum.label) && _.isString(datum.value); + return ( + _.isString(datum.label) + && _.isString(datum.value) + && !_.isEmpty(datum.label) + && !_.isEmpty(datum.value) + ); } else { return false; } diff --git a/app/client/src/widgets/RadioGroupWidget.tsx b/app/client/src/widgets/RadioGroupWidget.tsx index 1bfdc4372f..ec73394437 100644 --- a/app/client/src/widgets/RadioGroupWidget.tsx +++ b/app/client/src/widgets/RadioGroupWidget.tsx @@ -84,7 +84,6 @@ class RadioGroupWidget extends BaseWidget { export interface RadioOption { label: string; value: string; - id: string; } export interface RadioGroupWidgetProps extends WidgetProps {