mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-14 05:25:57 +08:00
fix: resets the state of adding a new panel (#3122)
Co-authored-by: Vishal Sharma <makeavish786@gmail.com> Co-authored-by: Palash Gupta <palashgdev@gmail.com>
This commit is contained in:
parent
b5af238374
commit
b3a6deb71b
@ -326,6 +326,13 @@ function GridGraph(props: Props): JSX.Element {
|
|||||||
errorMessage,
|
errorMessage,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
useEffect(
|
||||||
|
() => (): void => {
|
||||||
|
toggleAddWidget(false);
|
||||||
|
},
|
||||||
|
[toggleAddWidget],
|
||||||
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<GraphLayoutContainer
|
<GraphLayoutContainer
|
||||||
addPanelLoading={addPanelLoading}
|
addPanelLoading={addPanelLoading}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user