Skip to content

Commit

Permalink
src: the http bootstrap has the entire state, not the websocket (#2049)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Miller authored Aug 13, 2019
1 parent ecce413 commit d25c126
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/src/AppController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ class AppController {

let data = JSON.parse(event.data)

data.View.Resources = this.setDefaultResourceInfo(data.View.Resources)
data.Resources = this.setDefaultResourceInfo(data.Resources)
// @ts-ignore
this.component.setAppState({ View: data.View })
this.component.setAppState({ View: data })
})
}

Expand Down Expand Up @@ -126,7 +126,7 @@ class AppController {
fetch(url)
.then(resp => resp.json())
.then(data => {
data.Resources = this.setDefaultResourceInfo(data.Resources)
data.View.Resources = this.setDefaultResourceInfo(data.View.Resources)
// @ts-ignore
this.component.setAppState({ View: data })
})
Expand Down

0 comments on commit d25c126

Please sign in to comment.