Skip to content

Commit 0e42f4b

Browse files
Merge branch 'feat/refactor_stores_and_app_lifecycle' of https://github.com/Geode-solutions/OpenGeodeWeb-Front into feat/refactor_stores_and_app_lifecycle
2 parents 15dd9fc + d6a742d commit 0e42f4b

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

stores/infra.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,13 @@ export const use_infra_store = defineStore("infra", {
5050
if (this.app_mode == appMode.appMode.DESKTOP) {
5151
const viewer_store = use_viewer_store()
5252
const geode_store = use_geode_store()
53-
const back_port = await window.electronAPI.run_back(geode_store.default_local_port)
53+
const back_port = await window.electronAPI.run_back(
54+
geode_store.default_local_port,
55+
)
5456
geode_store.$patch({ default_local_port: back_port })
55-
const viewer_port = await window.electronAPI.run_viewer(viewer_store.default_local_port)
57+
const viewer_port = await window.electronAPI.run_viewer(
58+
viewer_store.default_local_port,
59+
)
5660
viewer_store.$patch({ default_local_port: viewer_port })
5761
} else if (this.app_mode == appMode.appMode.CLOUD) {
5862
const { data, error } = await useFetch(this.lambda_url, {

test/stores/Geode.nuxt.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ describe("Geode Store", () => {
2828
})
2929
})
3030

31-
3231
describe("getters", () => {
3332
describe("protocol", () => {
3433
test("test app_mode CLOUD", () => {

0 commit comments

Comments
 (0)