mirror of
https://github.com/appy-one/acebase.git
synced 2026-06-30 06:02:02 -06:00
Fixed: Array order getting messed up
This commit is contained in:
parent
4cf64d9ba9
commit
96263c1958
1 changed files with 1 additions and 1 deletions
|
|
@ -3000,7 +3000,7 @@ function _writeNode(storage, path, value, lock, currentRecordInfo = undefined) {
|
|||
const childPath = `${path}[${index}]`;
|
||||
let s = _serializeValue(storage, childPath, index, val, lock.tid);
|
||||
const add = (s) => {
|
||||
serialized.push(s);
|
||||
serialized[index] = s; // Fixed: Array order getting messed up (with serialized.push after promises resolving)
|
||||
}
|
||||
if (s instanceof Promise) {
|
||||
s = s.then(add);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue