diff --git a/src/pages/Well/WellOperations/Tvd/index.jsx b/src/pages/Well/WellOperations/Tvd/index.jsx
index 1082b00..ba4f036 100644
--- a/src/pages/Well/WellOperations/Tvd/index.jsx
+++ b/src/pages/Well/WellOperations/Tvd/index.jsx
@@ -229,14 +229,12 @@ const Tvd = memo(({ well: givenWell, title, ...other }) => {
)
}, [well])
- useEffect(() => {
- setTopRightBlock(
-
-
-
-
- )
- }, [well, setTopRightBlock])
+ useEffect(() => setTopRightBlock((well) => (
+
+
+
+
+ )), [setTopRightBlock])
return (
diff --git a/src/pages/Well/index.jsx b/src/pages/Well/index.jsx
index c54347c..a8145c5 100644
--- a/src/pages/Well/index.jsx
+++ b/src/pages/Well/index.jsx
@@ -78,11 +78,9 @@ const Well = memo(() => {
useEffect(() => setLayoutProps({
sider: ,
breadcrumb: makeMenuBreadcrumbItems(menuItems, location.pathname, /^\/well\/[0-9]+\//),
- topRightBlock: topRightBlock,
+ topRightBlock: topRightBlock?.(well),
}), [well, location.pathname, setLayoutProps, topRightBlock])
- useEffect(() => setTopRightBlock(undefined), [location])
-
return (