Skip to content

Commit

Permalink
fix(workflow-upgrade): add null check for availityWorkflow.plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
jordan-a-young committed Feb 12, 2024
1 parent baacaa2 commit 5977697
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/workflow-upgrade/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ module.exports = async (cwd) => {
scripts['upgrade:workflow'] = './node_modules/.bin/upgrade-workflow';

// Check for deprecated workflow features
if (availityWorkflow.plugin) {
if (availityWorkflow?.plugin) {
Logger.warn(`Deprecated plugin feature detected, removing availityWorkflow.plugin entry.`);
delete availityWorkflow.plugin;
}
Expand Down

0 comments on commit 5977697

Please sign in to comment.