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

sfirke 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 207a7bf7f9b fix: preserve dashboard certification when saving layout 
changes (#40193)
207a7bf7f9b is described below

commit 207a7bf7f9b00521af364f3821c567cad447b47c
Author: Onur Taşhan <[email protected]>
AuthorDate: Wed May 27 17:03:43 2026 +0300

    fix: preserve dashboard certification when saving layout changes (#40193)
    
    Co-authored-by: Claude Sonnet 4.6 <[email protected]>
---
 superset-frontend/src/dashboard/actions/dashboardState.ts | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/superset-frontend/src/dashboard/actions/dashboardState.ts 
b/superset-frontend/src/dashboard/actions/dashboardState.ts
index af5f7707dec..1d8a080db13 100644
--- a/superset-frontend/src/dashboard/actions/dashboardState.ts
+++ b/superset-frontend/src/dashboard/actions/dashboardState.ts
@@ -468,9 +468,12 @@ export function saveDashboardRequest(
     );
     const cleanedData: JsonObject = {
       ...data,
-      certified_by: certified_by || '',
-      certification_details:
-        certified_by && certification_details ? certification_details : '',
+      ...(certified_by !== undefined && {
+        certified_by,
+        certification_details: certified_by
+          ? (certification_details ?? '')
+          : '',
+      }),
       css: css || '',
       dashboard_title: dashboard_title || t('[ untitled dashboard ]'),
       owners: ensureIsArray(owners as JsonObject[]).map((o: JsonObject) =>

Reply via email to