This is an automated email from the ASF dual-hosted git repository.

rusackas pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 8c37d627aa9 fix: allow clearing database/schema in DatasourceModal 
(#39918)
8c37d627aa9 is described below

commit 8c37d627aa9c8351e7e60611cd3e1219495bb830
Author: Gordon Cowie <[email protected]>
AuthorDate: Fri Jul 24 16:17:25 2026 -0700

    fix: allow clearing database/schema in DatasourceModal (#39918)
---
 .../src/components/Datasource/DatasourceModal/index.tsx            | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git 
a/superset-frontend/src/components/Datasource/DatasourceModal/index.tsx 
b/superset-frontend/src/components/Datasource/DatasourceModal/index.tsx
index 01ef94229df..db06d3da57a 100644
--- a/superset-frontend/src/components/Datasource/DatasourceModal/index.tsx
+++ b/superset-frontend/src/components/Datasource/DatasourceModal/index.tsx
@@ -119,9 +119,10 @@ const DatasourceModal: 
FunctionComponent<DatasourceModalProps> = ({
       filter_select_enabled: datasource.filter_select_enabled,
       fetch_values_predicate: datasource.fetch_values_predicate,
       schema:
-        datasource.tableSelector?.schema ||
-        datasource.databaseSelector?.schema ||
-        datasource.schema,
+        datasource.tableSelector?.schema ??
+        datasource.databaseSelector?.schema ??
+        datasource.schema ??
+        null,
       description: datasource.description,
       main_dttm_col: datasource.main_dttm_col,
       currency_code_column: datasource.currency_code_column ?? null,

Reply via email to