diff --git a/app/client/cypress/e2e/Regression/ClientSide/Widgets/Select/Select_spec.js b/app/client/cypress/e2e/Regression/ClientSide/Widgets/Select/Select_spec.js index 059d27c6ca..1fd9e95ecb 100644 --- a/app/client/cypress/e2e/Regression/ClientSide/Widgets/Select/Select_spec.js +++ b/app/client/cypress/e2e/Regression/ClientSide/Widgets/Select/Select_spec.js @@ -9,7 +9,6 @@ const { agHelper, assertHelper, dataSources, - propPane, } = require("../../../../../support/Objects/ObjectsCore"); const { default: EditorNavigation, @@ -92,7 +91,6 @@ describe("Select widget", { tags: ["@tag.Widget", "@tag.Select"] }, () => { cy.get("@dsName").then((dsName) => { EditorNavigation.SelectEntityByName("Select1", EntityType.Widget); - propPane.ToggleJSMode("sourcedata", false); oneClickBinding.ChooseAndAssertForm( `${dsName}`, diff --git a/app/client/src/widgets/SelectWidget/widget/index.tsx b/app/client/src/widgets/SelectWidget/widget/index.tsx index 53d92e9938..27b7725d63 100644 --- a/app/client/src/widgets/SelectWidget/widget/index.tsx +++ b/app/client/src/widgets/SelectWidget/widget/index.tsx @@ -93,15 +93,11 @@ class SelectWidget extends BaseWidget { labelPosition: LabelPosition.Top, labelAlignment: Alignment.LEFT, labelWidth: 5, - sourceData: JSON.stringify( - [ - { name: "Blue", code: "BLUE" }, - { name: "Green", code: "GREEN" }, - { name: "Red", code: "RED" }, - ], - null, - 2, - ), + sourceData: [ + { name: "Blue", code: "BLUE" }, + { name: "Green", code: "GREEN" }, + { name: "Red", code: "RED" }, + ], optionLabel: "name", optionValue: "code", serverSideFiltering: false, @@ -115,7 +111,6 @@ class SelectWidget extends BaseWidget { labelTextSize: "0.875rem", responsiveBehavior: ResponsiveBehavior.Fill, minWidth: FILL_WIDGET_MIN_WIDTH, - dynamicPropertyPathList: [{ key: "sourceData" }], }; }