Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion test/keys.js
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,12 @@ function getReorderPatch(patches) {
for (var key in patches) {
if (key !== "a" && patches.hasOwnProperty(key)) {
var patch = patches[key]
if (patch.type === VPatch.ORDER) {
if (Array.isArray(patch)) {
var orderPathes = patch.filter(p => p.type === VPatch.ORDER)
if (orderPathes.length >= 1) {
return orderPathes[0]
}
} else if (patch.type === VPatch.ORDER) {
return patch
}
}
Expand Down