replaceItemOfList by assigning array index
This commit is contained in:
1 parent
9ba9732e8a
commit
4e34f1735a
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user