From 4e34f1735ac519fa158f8fb55395aafd72fd0fcb Mon Sep 17 00:00:00 2001 From: adroitwhiz Date: Sat, 20 Jul 2019 01:11:35 -0400 Subject: [PATCH] replaceItemOfList by assigning array index --- src/blocks/scratch3_data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blocks/scratch3_data.js b/src/blocks/scratch3_data.js index 78191c5dd..74987408b 100644 --- a/src/blocks/scratch3_data.js +++ b/src/blocks/scratch3_data.js @@ -180,7 +180,7 @@ class Scratch3DataBlocks { if (index === Cast.LIST_INVALID) { return; } - list.value.splice(index - 1, 1, item); + list.value[index - 1] = item; list._monitorUpToDate = false; }