forked from ddrilling/asb_cloud_front
Hotfix Отображение верхнего блока
This commit is contained in:
parent
51ac260c74
commit
a2d641abdd
@ -64,6 +64,11 @@ const Well = memo(() => {
|
||||
{ actionName: 'Изменение данных скважины', well }
|
||||
), [well])
|
||||
|
||||
const setBlock = useCallback((value) => {
|
||||
setTopRightBlock(() => value)
|
||||
return () => setTopRightBlock(undefined)
|
||||
}, [])
|
||||
|
||||
useEffect(() => {
|
||||
invokeWebApiWrapperAsync(
|
||||
async () => {
|
||||
@ -85,7 +90,7 @@ const Well = memo(() => {
|
||||
<RootPathContext.Provider value={rootPath}>
|
||||
<WellContext.Provider value={[well, updateWell]}>
|
||||
<FastRunMenu />
|
||||
<TopRightBlockContext.Provider value={setTopRightBlock}>
|
||||
<TopRightBlockContext.Provider value={setBlock}>
|
||||
<Routes>
|
||||
<Route index element={<Navigate to={'telemetry'} replace />} />
|
||||
<Route path={'*'} element={<NoAccessComponent />} />
|
||||
|
Loading…
Reference in New Issue
Block a user