Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[map embeddable] fix panel disappears from dashboard when canceling e…
…dit after dashboard save (#193911) Part of #193905. Broke work into separate PRs to backport map embeddable changes to 8.15. Resolves issue for Map embeddable. The problem is that Map embeddable is using a stale result from `parentApi.getAppContext`. Dashboard's `getAppContext` changes the `getCurrentPath` when the dashboard has a saved object id. By using the stale results, `getCurrentPath` returned `#/create` instead of `#/view/`. ### Test steps 1. create new dashboard 2. Click "Add panel" (problem also exists when using "Add from library") 3. Select "Maps" 4. In editor, click "Save and return" 5. Save dashboard 6. Click "Edit" in panel context menu 7. In editor, click "Cancel" 8. Ensure map panel is still displayed in dashboard (cherry picked from commit 882b6fb)
- Loading branch information