mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-12 15:57:28 +08:00
[F] Fix promise
This commit is contained in:
@@ -69,7 +69,7 @@
|
|||||||
console.log("Import data...")
|
console.log("Import data...")
|
||||||
loading = true
|
loading = true
|
||||||
|
|
||||||
TRANSFER.push({...src, ...gameInfo}, data).then(() => {
|
return TRANSFER.push({...src, ...gameInfo}, data).then(() => {
|
||||||
console.log("Data imported successfully")
|
console.log("Data imported successfully")
|
||||||
messages = ["Data imported successfully"]
|
messages = ["Data imported successfully"]
|
||||||
}).catch(err => expectedError = err.message).finally(() => loading = false)
|
}).catch(err => expectedError = err.message).finally(() => loading = false)
|
||||||
|
|||||||
Reference in New Issue
Block a user