How to use the cwlts/models/helpers/JobHelper.JobHelper.getNullJobInputs function in cwlts

To help you get started, we’ve selected a few cwlts examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github rabix / composer / src / app / job-editor / graph-job-editor / graph-job-editor.component.ts View on Github external
private normalizeJob(jobObject: Object) {
        const nullJob = JobHelper.getNullJobInputs(this.model);

        const job = jobObject || {};

        for (const key in job) {
            if (!nullJob.hasOwnProperty(key)) {
                delete job[key];
            }
        }

        return {...nullJob, ...job};
    }