Skip to content

Commit 236cd82

Browse files
fix: _flavor.inputAsTemplates getter to be safe
1 parent 97ddc0d commit 236cd82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/units/execution.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export class ExecutionUnit extends mix(BaseUnit).with(HashedInputArrayMixin) {
2121
this._application = this.constructor.Application.create(config.application);
2222
this._executable = this._application.getExecutableByConfig(config.executable);
2323
this._flavor = this._executable.getFlavorByConfig(config.flavor);
24-
this._templates = this._flavor.inputAsTemplates;
24+
this._templates = this._flavor ? this._flavor.inputAsTemplates : [];
2525
}
2626

2727
_initRuntimeItems(keys, config) {

0 commit comments

Comments
 (0)