mirror of
https://github.com/grafana/grafana.git
synced 2025-01-02 12:17:01 -06:00
NavToolbarActions: Make sure ToolbarActions are renrendered when needed (#89615)
This commit is contained in:
parent
a89deaeb73
commit
96fda0d6ea
@ -1,5 +1,5 @@
|
||||
import { css } from '@emotion/css';
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import React, { useEffect, useId, useState } from 'react';
|
||||
|
||||
import { GrafanaTheme2 } from '@grafana/data';
|
||||
import { selectors } from '@grafana/e2e-selectors';
|
||||
@ -37,7 +37,9 @@ interface Props {
|
||||
}
|
||||
|
||||
export const NavToolbarActions = React.memo<Props>(({ dashboard }) => {
|
||||
const actions = <ToolbarActions dashboard={dashboard} />;
|
||||
const id = useId();
|
||||
|
||||
const actions = <ToolbarActions dashboard={dashboard} key={id} />;
|
||||
return <AppChromeUpdate actions={actions} />;
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user