From 20a098ec19103d2832c74d6dbdbf077089aa3c00 Mon Sep 17 00:00:00 2001 From: Manish Kushare Date: Wed, 22 Mar 2023 15:49:57 +0530 Subject: [PATCH] bug fixed : element inside values other than boolean type was resulting to a warning in debugger (#5765) --- frontend/src/Editor/WidgetManager/widgetConfig.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/src/Editor/WidgetManager/widgetConfig.js b/frontend/src/Editor/WidgetManager/widgetConfig.js index b8f8a46a4c..87188bdbdc 100644 --- a/frontend/src/Editor/WidgetManager/widgetConfig.js +++ b/frontend/src/Editor/WidgetManager/widgetConfig.js @@ -1482,14 +1482,17 @@ export const widgets = [ type: 'code', displayName: 'Default value', validation: { - schema: { type: 'boolean' }, + schema: { type: 'union', schemas: [{ type: 'string' }, { type: 'number' }, { type: 'boolean' }] }, }, }, values: { type: 'code', displayName: 'Option values', validation: { - schema: { type: 'array', element: { type: 'boolean' } }, + schema: { + type: 'array', + element: { type: 'union', schemas: [{ type: 'string' }, { type: 'number' }, { type: 'boolean' }] }, + }, }, }, display_values: {