Skip to content

Commit 4fabe39

Browse files
committed
fix: Cannot read properties of undefined (reading 'objectId')
1 parent 2338ce9 commit 4fabe39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/control/LiveInstrumentRemote.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ export default class LiveInstrumentRemote {
211211

212212
let promises = [];
213213
for (let variable of result) {
214-
if (!variable.value.objectId) continue;
214+
if (!variable.value || !variable.value.objectId) continue;
215215
promises.push(this.getVariable(variable.value.objectId, newRemainingDepth)
216216
.then(res => variable.value.value = res));
217217
}

0 commit comments

Comments
 (0)