Skip to content

Commit

Permalink
fix infinite recursion possibility in Scenegraph Inspector and fix Ro…
Browse files Browse the repository at this point in the history
…ku Commands list of available requests (#480)

Co-authored-by: Brian Leighty <bleighty@tubi.tv>
Co-authored-by: Bronley Plumb <bronley@gmail.com>
  • Loading branch information
3 people committed May 10, 2023
1 parent c48d401 commit 82b7c01
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 34 deletions.
74 changes: 47 additions & 27 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"pretty-bytes": "^5.6.0",
"roku-debug": "^0.18.8",
"roku-deploy": "^3.10.1",
"roku-test-automation": "^2.0.0-beta.17",
"roku-test-automation": "^2.0.0-beta.19",
"semver": "^7.1.3",
"source-map": "^0.7.3",
"thenby": "^1.3.4",
Expand Down
9 changes: 4 additions & 5 deletions webviews/src/views/RokuCommandsView/RokuCommandsView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,13 @@
const commandList = [];
for (const commandName of odcCommands) {
let argsKey = commandName.charAt(0).toUpperCase() + commandName.slice(1) + 'Args';
const definition = requestArgsSchema.definitions[argsKey];
if (!definition) {
console.warn(`Could not retrieve definition for ${commandName}`);
continue;
let definitionArgs = requestArgsSchema.definitions[argsKey] as any[];
if (!definitionArgs) {
definitionArgs = [];
}
commandList.push({
name: commandName,
args: requestArgsSchema.definitions[argsKey]
args: definitionArgs
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@
const returnFocusedArrayGridChild = utils.getStorageBooleanValue('includeArrayGridChildren', true)
const { ref } = await odc.getFocusedNode({
includeRef: true,
returnFocusedArrayGridChild: returnFocusedArrayGridChild
returnFocusedArrayGridChild: returnFocusedArrayGridChild,
includeNode: false
});
focusedNode = ref;
}
Expand Down

0 comments on commit 82b7c01

Please sign in to comment.