@gesslar/actioneer 0.2.6 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/lib/ActionBuilder.js +2 -2
package/package.json
CHANGED
package/src/lib/ActionBuilder.js
CHANGED
|
@@ -247,10 +247,10 @@ export default class ActionBuilder {
|
|
|
247
247
|
async build() {
|
|
248
248
|
const action = this.#action
|
|
249
249
|
|
|
250
|
-
if(!action.tag) {
|
|
250
|
+
if(action && !action.tag) {
|
|
251
251
|
action.tag = this.#tag
|
|
252
252
|
|
|
253
|
-
action.setup.call(action, this)
|
|
253
|
+
await Promise.resolve(action.setup.call(action, this))
|
|
254
254
|
}
|
|
255
255
|
|
|
256
256
|
// All children in a branch also get the same hooks.
|