Skip to content

Commit

Permalink
Merge pull request #483 from vlocityinc/beta
Browse files Browse the repository at this point in the history
Make sure OmniScript has Id before trying to compile in reusable flow
  • Loading branch information
Adam Rutland authored Jun 21, 2022
2 parents e278623 + d0cb6c1 commit d4b15a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/datapacktypes/omniscript.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,10 @@ OmniScript.prototype.onDeployFinish = async function (jobInfo) {
for (let i = 0; i < idsArray.length; i++) {
var omniScriptId = idsArray[i];
var omniScriptKey = jobInfo.resusableOSToCompile[omniScriptId];
await this.compileOmniScriptLwc(jobInfo, omniScriptId, omniScriptKey);

if (omniScriptId) {
await this.compileOmniScriptLwc(jobInfo, omniScriptId, omniScriptKey);
}
}
}
jobInfo.resusableOSToCompile = {};
Expand Down

0 comments on commit d4b15a4

Please sign in to comment.