Skip to content

Commit e2fb4a3

Browse files
Adrinlolagneum
authored andcommitted
fix: Transparency of the data retrieving process (#404)
1 parent 4231ad8 commit e2fb4a3

File tree

1 file changed

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

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export type Api = {
4141
updateConfig?: UpdateConfig
4242
testDbSource?: TestDbSource
4343
getFullConfig?: GetFullConfig
44-
getInstanceRetrieval: GetInstanceRetrieval
44+
getInstanceRetrieval?: GetInstanceRetrieval
4545
}
4646

4747
type Error = {
@@ -100,6 +100,8 @@ export class MainStore {
100100
}
101101

102102
private loadInstanceRetrieval = async (instanceId: string) => {
103+
if (!this.api.getInstanceRetrieval) return
104+
103105
const { response, error } = await this.api.getInstanceRetrieval({
104106
instanceId: instanceId,
105107
})

0 commit comments

Comments
 (0)