Skip to content

Commit

Permalink
[Lens] fix opening formula panel causes "Uncaught Error: Maximum upda… (
Browse files Browse the repository at this point in the history
#161886)

…te depth exceeded"

## Summary

Fixes #161885. The infinite
update loop doesn't happen as we stabilized the `defaultTheme` object.
  • Loading branch information
mbondyra authored Jul 14, 2023
1 parent aea919c commit 4376853
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/kibana_react/public/theme/use_theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import useObservable from 'react-use/lib/useObservable';
import { of } from 'rxjs';
import { useKibana } from '../context/context';

export const useKibanaTheme = (): CoreTheme => {
const defaultTheme: CoreTheme = { darkMode: false };
const defaultTheme: CoreTheme = { darkMode: false };

export const useKibanaTheme = (): CoreTheme => {
const {
services: { theme },
} = useKibana();
Expand Down

0 comments on commit 4376853

Please sign in to comment.