From dd36cdd092747a3586eef38a1dcc1f0519305e4f Mon Sep 17 00:00:00 2001 From: Scott Erickson Date: Mon, 14 Apr 2014 11:14:09 -0700 Subject: [PATCH] Fixed #836 --- app/lib/deltas.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/deltas.coffee b/app/lib/deltas.coffee index 0782231eb..9629139e8 100644 --- a/app/lib/deltas.coffee +++ b/app/lib/deltas.coffee @@ -54,7 +54,7 @@ expandFlattenedDelta = (delta, left, schema) -> if _.isPlainObject(o) and o._t isnt 'a' delta.action = 'modified-object' - if _.isArray(o) and o.length is 3 and o[1] is 0 and o[2] is 3 + if _.isArray(o) and o.length is 3 and o[2] is 3 delta.action = 'moved-index' delta.destinationIndex = o[1] delta.originalIndex = delta.dataPath[delta.dataPath.length-1]