From b598e0bfad62620d7492f44d24ac940b08ea6f34 Mon Sep 17 00:00:00 2001 From: Jonathan Budzenski Date: Tue, 26 Nov 2024 21:30:45 -0600 Subject: [PATCH] Revert "[dashboard] fix Reset dashboard breaks panel state when ran after editor edits (#201687)" This reverts commit 289bb1684abb65b53db650a67c5dac8acc72df39. --- .../dashboard_container/embeddable/create/create_dashboard.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/dashboard/public/dashboard_container/embeddable/create/create_dashboard.ts b/src/plugins/dashboard/public/dashboard_container/embeddable/create/create_dashboard.ts index d5314c274531f..2510f2e015dfb 100644 --- a/src/plugins/dashboard/public/dashboard_container/embeddable/create/create_dashboard.ts +++ b/src/plugins/dashboard/public/dashboard_container/embeddable/create/create_dashboard.ts @@ -362,6 +362,7 @@ export const initializeDashboard = async ({ hidePanelTitles: panelToUpdate.explicitInput.hidePanelTitles, }; if (embeddableService.reactEmbeddableRegistryHasKey(incomingEmbeddable.type)) { + panelToUpdate.explicitInput = { id: panelToUpdate.explicitInput.id }; runtimePanelsToRestore[incomingEmbeddable.embeddableId] = nextRuntimeState; } else { panelToUpdate.explicitInput = nextRuntimeState;