fix: non-existent hooks

This commit is contained in:
cha0s 2023-12-11 14:53:51 -06:00
parent 2f7ebf66a2
commit 454c74993a

View File

@ -258,7 +258,7 @@ export default class Flecks {
* @returns {boolean} * @returns {boolean}
*/ */
fleckImplements(fleck, hook) { fleckImplements(fleck, hook) {
return !!this.hooks[hook].find(({fleck: candidate}) => fleck === candidate); return !!this.hooks[hook]?.find(({fleck: candidate}) => fleck === candidate);
} }
/** /**