working with db, docker working, small error with personal data
This commit is contained in:
@@ -20,7 +20,7 @@ let Global = class {
|
||||
window.dispatchEvent(event)
|
||||
}
|
||||
|
||||
async fetchAppData() {
|
||||
async fetchOrgData() {
|
||||
let personalSpace = this.currentNetwork === this.profile
|
||||
let appData = await fetch(`/api/${personalSpace ? "my" : "org"}data/` + this.currentNetwork.id, {method: "GET"})
|
||||
let json = await appData.json()
|
||||
@@ -84,7 +84,7 @@ let Global = class {
|
||||
}
|
||||
|
||||
if(!this.currentNetwork.data) {
|
||||
this.currentNetwork.data = await this.fetchAppData()
|
||||
this.currentNetwork.data = await this.fetchOrgData()
|
||||
}
|
||||
|
||||
if(appChanged && !networkChanged) {
|
||||
|
||||
Reference in New Issue
Block a user