Skip to content

Commit

Permalink
Nit
Browse files Browse the repository at this point in the history
  • Loading branch information
stratoula committed Mar 27, 2023
1 parent 344530a commit 8bf34d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/plugins/unified_histogram/public/container/container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@ export const UnifiedHistogramContainer = forwardRef<
getRelativeTimeRange,
} = options;

(async () => {
const apiHelper = await services.lens.stateHelperApi();
setLensSuggestionsApi(() => apiHelper.suggestions);
})();
// API helpers are loaded async from Lens
services.lens
.stateHelperApi()
.then(({ suggestions }) => setLensSuggestionsApi(() => suggestions));

setLayoutProps({
services,
Expand Down

0 comments on commit 8bf34d4

Please sign in to comment.