Skip to content

Commit 025336e

Browse files
authored
Support handling of unknown key commands that don't exist in commands.json (#1424)
1 parent aa12a9d commit 025336e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/models/services/TestsService.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ const getTests = parentRecord => {
3535
if (isV2) {
3636
const screenText = at?.settings[scenario.settings]?.screenText;
3737
const commandKVs = getCommandV2(commandId);
38+
39+
if (!commandKVs[0]) return { id: '', text: '' };
3840
if (commandKVs.length) {
3941
// `scenario` has an identifier to the settings being displayed.
4042
// May be best to display the settings text instead, ie.

0 commit comments

Comments
 (0)