We are planning to upgrade GitLab to the latest version this Friday morning. Expect some downtime!

Commit 6e5b5738 authored by Bas Lijnse's avatar Bas Lijnse

Fixed off-by-one bug in list counter

parent f5a63281
Pipeline #29517 passed with stage
in 4 minutes and 34 seconds
......@@ -175,7 +175,7 @@ where
(Error e,vst) = (Error e, vst)
(Ok (ui,nm),vst)
# nChildSts = childSts ++ [nm]
# nitems = itemEditor.Editor.valueFromState <$> childSts
# nitems = itemEditor.Editor.valueFromState <$> nChildSts
# nids = ids ++ [nid]
# insert = [(ni,InsertChild (listItemUI taskId dp (ni + 1) ni nid ui))]
# counter = maybe [] (\f -> [(ni + 1, ChangeChild (ChangeUI [] [(0,ChangeChild (ChangeUI [SetAttribute "value" (JSONString (f nitems))] []))]))]) count
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment