mirror of
https://github.com/umap-project/umap.git
synced 2025-04-28 19:42:36 +02:00
chore: listen for later _trySave status
This commit is contained in:
parent
ed232e59b8
commit
7f65b1de57
1 changed files with 7 additions and 5 deletions
|
@ -1066,13 +1066,15 @@ export class DataLayer extends ServerStored {
|
|||
),
|
||||
async () => {
|
||||
// Save again this layer
|
||||
await this._trySave(url, {}, formData)
|
||||
const status = await this._trySave(url, {}, formData)
|
||||
if (status) {
|
||||
this.isDirty = false
|
||||
|
||||
// Call the main save, in case something else needs to be saved
|
||||
// as the conflict stopped the saving flow
|
||||
await this.map.saveAll()
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue