Validate that job.needs exists

This commit is contained in:
Josh Gross
2022-11-30 11:31:55 -05:00
parent 643917ae9d
commit 71bde2b801
@@ -3,7 +3,7 @@ import {WorkflowContext} from "../context/workflow-context";
export function getNeedsContext(workflowContext: WorkflowContext): data.Dictionary {
const d = new data.Dictionary();
if (!workflowContext.job) {
if (!workflowContext.job || !workflowContext.job.needs) {
return d;
}