Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5e162d3

Browse files
committed
Merge branch 'dle-config-presets-fix' into 'master'
fix(ui): add back missing request, fix active tab issue See merge request postgres-ai/database-lab!794
2 parents a1209b1 + c72e40c commit 5e162d3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

‎ui/packages/shared/pages/Instance/index.tsx‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff 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}>

‎ui/packages/shared/pages/Instance/stores/Main.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /