From 76cf32d221ea8fd9cb2f572847e4be6be8524297 Mon Sep 17 00:00:00 2001 From: Ayush Pahwa Date: Thu, 14 Sep 2023 15:40:42 +0700 Subject: [PATCH] chore: update default ID for saas forms (#27293) Fixes a CE only issue which sets the env ID for SAAS forms. Affects the usage of google sheets in CE. --- app/client/src/pages/Editor/SaaSEditor/DatasourceForm.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/client/src/pages/Editor/SaaSEditor/DatasourceForm.tsx b/app/client/src/pages/Editor/SaaSEditor/DatasourceForm.tsx index e792d8f274..662e00f625 100644 --- a/app/client/src/pages/Editor/SaaSEditor/DatasourceForm.tsx +++ b/app/client/src/pages/Editor/SaaSEditor/DatasourceForm.tsx @@ -88,6 +88,7 @@ import { FEATURE_FLAG } from "@appsmith/entities/FeatureFlag"; import { selectFeatureFlagCheck } from "@appsmith/selectors/featureFlagsSelectors"; import AnalyticsUtil from "utils/AnalyticsUtil"; import { getDefaultEnvironmentId } from "@appsmith/selectors/environmentSelectors"; +import { DEFAULT_ENV_ID } from "@appsmith/api/ApiUtils"; const ViewModeContainer = styled.div` display: flex; @@ -239,7 +240,7 @@ class DatasourceSaaSEditor extends JSONtoForm { routesBlocked: false, readUrlParams: false, filterParams: { - id: "", + id: DEFAULT_ENV_ID, name: "", userPermissions: [], },