Skip to content

Commit c5d9570

Browse files
committed
Fix crash happening SELF code selection
Signed-off-by: worksofliam <[email protected]>
1 parent 04b7f96 commit c5d9570

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/views/jobManager/jobManagerView.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export class JobManagerView implements TreeDataProvider<any> {
175175
quickPick.onDidChangeSelection(async () => {
176176
const selections = quickPick.selectedItems;
177177
// SET SYSIBMADM.SELFCODES = SYSIBMADM.VALIDATE_SELF('-514, -204, -501, +30, -199');
178-
if (selections && selections[0].label !== currentSelfCodes) {
178+
if (selections && selections[0] && selections[0].label !== currentSelfCodes) {
179179
const code = selections[0].label as SelfValue;
180180
try {
181181
await selected.job.setSelfState(code);

0 commit comments

Comments
 (0)