Skip to content

Commit e196fcf

Browse files
authored
sb3.js -- question mark of hope and happiness
1 parent 90be9f6 commit e196fcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/serialization/sb3.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ const makeSafeForJSON = (runtime, value) => {
624624
if (Array.isArray(value)) {
625625
let copy = null;
626626
for (let i = 0; i < value.length; i++) {
627-
if (value[i].customId) {
627+
if (value[i]?.customId) {
628628
if (!copy) {
629629
// Only copy the list when needed
630630
copy = value.slice();

0 commit comments

Comments
 (0)