fixed a bug with the sidebar entry

pull/13/head
Jendrik 2025-09-25 23:40:32 +02:00
parent e1911cdd47
commit 646c9c6d16
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ Hooks.on("getActorContextOptions", (application, menuItems) => {
name: "Import from XML",
icon: '<i class="fas fa-file"></i>',
callback: (li) => {
const actorId = li.data("document-id")
const actorId = li.getAttribute("data-entry-id")
const actor = game.actors.get(actorId)
actor.import()
}