File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
ui/packages/shared/pages/Instance Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ export const Instance = observer((props: Props) => {
6565
6666 const { instanceId, api } = props
6767 const [ activeTab , setActiveTab ] = React . useState ( 0 )
68+ const [ hasBeenRedirected , setHasBeenRedirected ] = React . useState ( false ) ;
6869
6970 const stores = useCreatedStores ( props )
7071 const {
@@ -101,14 +102,12 @@ export const Instance = observer((props: Props) => {
101102 instance &&
102103 instance ?. state . retrieving ?. status === 'pending' &&
103104 isConfigurationActive &&
104- ! props . isPlatform
105+ ! props . isPlatform && ! hasBeenRedirected
105106 ) {
106107 setActiveTab ( 2 )
108+ setHasBeenRedirected ( true )
107109 }
108- if ( instance && ! instance ?. state ?. pools ) {
109- if ( ! props . callbacks ) return
110- }
111- } , [ instance ] )
110+ } , [ instance , hasBeenRedirected ] )
112111
113112 return (
114113 < HostProvider value = { props } >
Original file line number Diff line number Diff line change @@ -93,6 +93,7 @@ export class MainStore {
9393 this . loadInstanceRetrieval ( instanceId ) . then ( ( ) => {
9494 if ( this . instanceRetrieval ) {
9595 this . getConfig ( )
96+ this . getFullConfig ( )
9697 }
9798 } )
9899 this . snapshots . load ( instanceId )
You can’t perform that action at this time.
0 commit comments