Skip to content

Commit 17c4ada

Browse files
fix(create_connexion): returns create_backend
1 parent 87e3ef7 commit 17c4ada

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

stores/infra.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,11 @@ export const use_infra_store = defineStore("infra", {
4343
},
4444
actions: {
4545
async create_connexion() {
46-
const geode_store = use_geode_store()
4746
if (this.is_connexion_launched) {
4847
return
4948
}
5049
this.is_connexion_launched = true
51-
if (["", null].includes(this.ID) || typeof this.ID === "undefined") {
52-
return this.create_backend()
53-
} else {
54-
try {
55-
await geode_store.do_ping()
56-
return geode_store.ping_task()
57-
} catch (e) {
58-
return this.create_backend()
59-
}
60-
}
50+
return this.create_backend()
6151
},
6252
async create_backend() {
6353
const geode_store = use_geode_store()

0 commit comments

Comments
 (0)