From: Damyan Ivanov Date: Wed, 16 Feb 2022 17:16:54 +0000 (+0000) Subject: put item version in item data, not list version X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=bca728862c0339f22179782a4190c4801fc92535;p=lsl.git put item version in item data, not list version --- diff --git a/public/javascripts/lsl.js b/public/javascripts/lsl.js index b195647..1dfe42c 100644 --- a/public/javascripts/lsl.js +++ b/public/javascripts/lsl.js @@ -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(''); }