From bca728862c0339f22179782a4190c4801fc92535 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Wed, 16 Feb 2022 17:16:54 +0000 Subject: [PATCH] put item version in item data, not list version --- public/javascripts/lsl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(''); } -- 2.39.5