fix: non-existent hooks
This commit is contained in:
parent
2f7ebf66a2
commit
454c74993a
|
@ -258,7 +258,7 @@ export default class Flecks {
|
|||
* @returns {boolean}
|
||||
*/
|
||||
fleckImplements(fleck, hook) {
|
||||
return !!this.hooks[hook].find(({fleck: candidate}) => fleck === candidate);
|
||||
return !!this.hooks[hook]?.find(({fleck: candidate}) => fleck === candidate);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user