mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-07 14:36:13 +01:00
Fixed deletion of items error
This commit is contained in:
parent
7a500f7bc8
commit
18c965bc8a
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ export default class RegisteredTriggers extends Map {
|
||||||
|
|
||||||
unregisterItemTriggers(items) {
|
unregisterItemTriggers(items) {
|
||||||
for (const item of items) {
|
for (const item of items) {
|
||||||
if (!item.system.actions.size) continue;
|
if (!item.system.actions?.size) continue;
|
||||||
|
|
||||||
const triggers = (item.system.actions ?? []).reduce((acc, action) => {
|
const triggers = (item.system.actions ?? []).reduce((acc, action) => {
|
||||||
acc.push(...action.triggers.map(x => x.trigger));
|
acc.push(...action.triggers.map(x => x.trigger));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue