Skip to content

Commit 4097da3

Browse files
committed
Merge branch 'conditional-snapshot-request' into 'master'
fix(ui): make snapshots request conditionally (https://gitlab.com/postgres-ai/database-lab/-/merge_requests/813#note_1542662923) See merge request postgres-ai/database-lab!819
2 parents 89cfbf4 + 39f51d2 commit 4097da3

File tree

1 file changed

+2
-2
lines changed
  • ui/packages/shared/pages/Instance/stores

1 file changed

+2
-2
lines changed

Diff for: ui/packages/shared/pages/Instance/stores/Main.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export class MainStore {
9090
this.instance = null
9191
this.isReloadingInstance = true
9292
this.loadInstance(instanceId, false).then(() => {
93-
if (this.instance?.url) {
93+
if (this.instance?.createdAt && this.instance?.url || !this.instance?.createdAt) {
9494
this.snapshots.load(instanceId)
9595
}
9696
})
@@ -109,7 +109,7 @@ export class MainStore {
109109
if (this.api.refreshInstance)
110110
this.api.refreshInstance({ instanceId: instanceId })
111111

112-
if (this.instance?.url) {
112+
if (this.instance?.createdAt && this.instance?.url || !this.instance?.createdAt) {
113113
this.snapshots.load(instanceId)
114114
}
115115
})

0 commit comments

Comments
 (0)