]> git.ktnx.net Git - lsl.git/commitdiff
put item version in item data, not list version
authorDamyan Ivanov <dmn@debian.org>
Wed, 16 Feb 2022 17:16:54 +0000 (17:16 +0000)
committerDamyan Ivanov <dmn@debian.org>
Wed, 16 Feb 2022 17:16:54 +0000 (17:16 +0000)
public/javascripts/lsl.js

index b1956475564560cdb8397d394a332adb5de8aeaf..1dfe42c54dab2963852b8109c82186e2987bbcf3 100644 (file)
@@ -114,8 +114,8 @@ function new_list_item_submission_done(data) {
             version: 1,
         };
         item_data.items.push(new_item);
-        item_data.version = data.list_version;
         add_list_item(new_item);
+    item_data.version = data.version;
 
     $('#new-list-item input').val('');
 }