Skip to content

Commit

Permalink
Fixed null mixin bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bbupton committed Aug 4, 2023
1 parent 7eba18b commit 31ee1fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/kernel/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- m4_getRotation() correctly ignores scale
- Only actor mixins trigger a model change
- Reparenting bug when child pawns didn't have parents
- Null mixins handled

### Removed
- PlayerManager (replaced by UserManager)
Expand Down
2 changes: 1 addition & 1 deletion packages/kernel/src/Mixins.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class MixinFactory {

with(...mixins) {
if (IsModel(this.superclass))Constants.WC_MIXIN_USAGE.push(mixins);
return mixins.reduce((c, mixin) => mixin(c), this.superclass);
return mixins.reduce((c, mixin) => { if (mixin) return mixin(c); return c }, this.superclass);
}
}

Expand Down

0 comments on commit 31ee1fa

Please sign in to comment.