Skip to content

Commit 0ed3190

Browse files
authored
Merge pull request #3031 from entrylabs/issue/10187
Issue/10187
2 parents 3cb0593 + 404c147 commit 0ed3190

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/playground/blocks/block_analysis.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1233,10 +1233,9 @@ module.exports = {
12331233
const returnCol = DataTable.getColumnIndex(script.getValue('RETURN', script));
12341234
const value = script.getValue('VALUE', script);
12351235
const table = DataTable.getSource(tableId, sprite);
1236-
const { origin } = table;
12371236

12381237
let foundIndex;
1239-
for (let i = 0; i < origin.length; i++) {
1238+
for (let i = 0; i < table?.table?.length || 0; i++) {
12401239
if (table.getValue([i, col]) == value) {
12411240
foundIndex = i;
12421241
break;

0 commit comments

Comments
 (0)