From 696707b9f98a805a4f588e3e4940e36dc8624067 Mon Sep 17 00:00:00 2001 From: Haxxer Date: Mon, 1 Jul 2024 16:42:21 +0100 Subject: [PATCH] Fixes to const --- changelog.md | 2 + src/API/private-api.js | 2 +- .../components/PropertyPathInput.svelte | 16 +++----- .../settings-app/settings-shell.svelte | 9 +++-- .../trading-app/TradeEntry.svelte | 2 +- src/helpers/utilities.js | 38 ++++++++++--------- 6 files changed, 35 insertions(+), 34 deletions(-) diff --git a/changelog.md b/changelog.md index c863bdd0..449b99bf 100644 --- a/changelog.md +++ b/changelog.md @@ -4,6 +4,8 @@ - Fixed opening item pile interfaces would spawn duplicate windows instead of focusing existing interfaces - Fixed item piles chat messages not working in v11 +- Fixed errors when trying to get document templates in v12 (fixes merchant columns & item pile system settings) +- Fixed deprecation warnings surrounding `CONST.DOCUMENT_PERMISSION_LEVELS` ## Version 3.0.1 diff --git a/src/API/private-api.js b/src/API/private-api.js index 9917ef1d..01fad17d 100644 --- a/src/API/private-api.js +++ b/src/API/private-api.js @@ -1810,7 +1810,7 @@ export default class PrivateAPI { const actorOwners = Object.entries(targetActor.ownership) .filter(entry => { - return entry[0] !== "default" && entry[1] === CONST.DOCUMENT_PERMISSION_LEVELS.OWNER; + return entry[0] !== "default" && entry[1] === CONST.DOCUMENT_OWNERSHIP_LEVELS.OWNER; }) .map(entry => game.users.get(entry[0])) .sort(user => user.isGM ? 1 : -1); diff --git a/src/applications/components/PropertyPathInput.svelte b/src/applications/components/PropertyPathInput.svelte index 88e60daf..f15469e9 100644 --- a/src/applications/components/PropertyPathInput.svelte +++ b/src/applications/components/PropertyPathInput.svelte @@ -1,26 +1,20 @@