mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-17 23:49:02 +01:00
GetDocFromElement is now async to work with compendiums. Added GetDocFromElementSync for use in contextMenu condition cases
This commit is contained in:
parent
e6bfe08d83
commit
f3c48c68b9
5 changed files with 89 additions and 54 deletions
|
|
@ -75,7 +75,7 @@ export default class DHEnvironmentSettings extends DHBaseActorSettings {
|
|||
* @returns
|
||||
*/
|
||||
static async #deleteAdversary(_event, target) {
|
||||
const doc = getDocFromElement(target);
|
||||
const doc = await getDocFromElement(target);
|
||||
const { category } = target.dataset;
|
||||
const path = `system.potentialAdversaries.${category}.adversaries`;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue