diff --git a/frontend/src/container/GridGraphLayout/index.tsx b/frontend/src/container/GridGraphLayout/index.tsx index 2235b93708..6b6ec7d883 100644 --- a/frontend/src/container/GridGraphLayout/index.tsx +++ b/frontend/src/container/GridGraphLayout/index.tsx @@ -326,6 +326,13 @@ function GridGraph(props: Props): JSX.Element { errorMessage, ]); + useEffect( + () => (): void => { + toggleAddWidget(false); + }, + [toggleAddWidget], + ); + return (