Skip to content

Commit

Permalink
fix: Fixed custom Add-On module loading issue #600
Browse files Browse the repository at this point in the history
  • Loading branch information
hknokh2 committed Jun 25, 2023
1 parent 43f646e commit 76dfbba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion messages/resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"customAddon": "Custom Add-On",
"cantLoad": "%s is not found or could not be loaded.",
"global": "Global",
"cantLoadModule": "Can not load module %s.",
"cantLoadModule": "Cannot load module '%s'. Please ensure that the module exists in the desired location, it is properly configured, and it has an 'onExecute' entry point function.",
"actionNotPermitted": "The action is not permitted.",

"defaultPromptOptions": "y/n",
Expand Down
2 changes: 1 addition & 1 deletion src/addons/components/sfdmu-run/sfdmuRunAddonManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ export default class SfdmuRunAddonManager {
this.addonsMap.get(addon.event).push([
moduleInstance.onExecute.bind(moduleInstance, moduleInstance.context, addon.args),
addon,
moduleInstance.onInit.bind(moduleInstance, moduleInstance.context, addon.args),
moduleInstance.onInit ? moduleInstance.onInit.bind(moduleInstance, moduleInstance.context, addon.args) : () => void 0,
]);
}
} catch (ex) {
Expand Down

0 comments on commit 76dfbba

Please sign in to comment.