Skip to content

Commit

Permalink
getState is synchronous
Browse files Browse the repository at this point in the history
Unfortunately, the `getSerializedState` method still needs to be async since the `getDashboardState` method on the CM service is a promise. But this might change when we move reference handling to the server in #192758.
  • Loading branch information
nickpeihl committed Dec 13, 2024
1 parent 6b6818f commit b58c33d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export function getDashboardApi({
unifiedSearchManager.internalApi.panelsReload$
).pipe(debounceTime(0)),
getSerializedState: async () => {
const { controlGroupReferences, dashboardState, panelReferences } = await getState();
const { controlGroupReferences, dashboardState, panelReferences } = getState();
return getDashboardContentManagementService().getDashboardState({
controlGroupReferences,
currentState: dashboardState,
Expand Down

0 comments on commit b58c33d

Please sign in to comment.