From bc5b7909cb74d28cc84afa3bdea59db1a3a02d8b Mon Sep 17 00:00:00 2001 From: sneha122 Date: Fri, 5 Apr 2024 13:56:44 +0530 Subject: [PATCH] fix: gsheet query UI doesnt load on change of command fixed (#32427) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description This PR fixes a UI issue where Google Sheets query form does not show correct inputs until unselecting and reselecting the entity [row, sheet, spreadsheet] ![318921276-6fb2ef69-9bc2-457b-87ea-601c1aa8646b](https://github.com/appsmithorg/appsmith/assets/30018882/d7218963-6e14-4913-8e8e-737882c13e5f) Fixes #32349 _or_ Fixes `Issue URL` > [!WARNING] > _If no issue exists, please create an issue first, and check with the maintainers if the issue is valid._ ## Automation /ok-to-test tags="@tag.Datasource" ### :mag: Cypress test results > [!IMPORTANT] > Workflow run: > Commit: `75e427498a74caf8d6ab0c3f6a4b2c5799cdfe50` > Cypress dashboard url: Click here! > All cypress tests have passed 🎉🎉🎉 Co-authored-by: “sneha122” <“sneha@appsmith.com”> --- .../googleSheetsPlugin/src/main/resources/editor/root.json | 1 + 1 file changed, 1 insertion(+) diff --git a/app/server/appsmith-plugins/googleSheetsPlugin/src/main/resources/editor/root.json b/app/server/appsmith-plugins/googleSheetsPlugin/src/main/resources/editor/root.json index 4b58c3dc5b..07b2bff2ab 100644 --- a/app/server/appsmith-plugins/googleSheetsPlugin/src/main/resources/editor/root.json +++ b/app/server/appsmith-plugins/googleSheetsPlugin/src/main/resources/editor/root.json @@ -53,6 +53,7 @@ "controlType": "DROP_DOWN", "initialValue": "ROWS", "isRequired": true, + "setFirstOptionAsDefault": true, "options": [ { "disabled": "{{ ['INSERT_ONE', 'UPDATE_ONE', 'DELETE_ONE', 'FETCH_MANY', 'UPDATE_MANY', 'INSERT_MANY'].includes(actionConfiguration.formData.command.data) === false }}",