Skip to content

Commit 63f9d70

Browse files
committed
async function
1 parent 3908a49 commit 63f9d70

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stores/viewer.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,16 +88,16 @@ export const use_viewer_store = defineStore("viewer", {
8888
return new Promise((resolve, reject) => {
8989
clientToConnect
9090
.connect(config)
91-
.then((validClient) => {
91+
.then(async (validClient) => {
9292
connectImageStream(validClient.getConnection().getSession())
9393
this.client = validClient
9494
clientToConnect.endBusy()
9595

9696
// Now that the client is ready let's setup the server for us
97-
viewer_call({
97+
await viewer_call({
9898
schema: schemas.opengeodeweb_viewer.create_visualization,
9999
})
100-
viewer_call({
100+
await viewer_call({
101101
schema: schemas.opengeodeweb_viewer.reset,
102102
})
103103
this.is_running = true

0 commit comments

Comments
 (0)