Skip to content

Commit c98a4f4

Browse files
authored
Merge pull request #126 from Geode-solutions/toolbar_edit
fix(viewer.js): Remove async & await
2 parents 881522a + 5ad397c commit c98a4f4

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(async (validClient) => {
91+
.then((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-
await viewer_call({
97+
viewer_call({
9898
schema: schemas.opengeodeweb_viewer.create_visualization,
9999
})
100-
await viewer_call({
100+
viewer_call({
101101
schema: schemas.opengeodeweb_viewer.reset,
102102
})
103103
this.is_running = true

0 commit comments

Comments
 (0)