Skip to content

Commit

Permalink
fix case when job.tags is null (#1454)
Browse files Browse the repository at this point in the history
  • Loading branch information
rstijerina authored Oct 2, 2024
1 parent 37a4c36 commit 88c67db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/modules/_hooks/src/workspace/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export type TTapisJob = {
stageAppTransactionId?: string;
status: string;
subscriptions: string;
tags: string[];
tags: string[] | null;
tapisQueue: string;
tenant: string;
uuid: string;
Expand Down
2 changes: 1 addition & 1 deletion client/modules/workspace/src/utils/jobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export function getOutputPath(job: TTapisJob) {
}

export function isInteractiveJob(job: TTapisJob) {
return job.tags.includes('isInteractive');
return job.tags?.includes('isInteractive');
}

export function getJobInteractiveSessionInfo(
Expand Down

0 comments on commit 88c67db

Please sign in to comment.