Issue 80 Chatmessage fix (#81)

* fix chatmessage to render the template in constructor. Update namespaces.

* update all chat messages to render templates
This commit is contained in:
IrkTheImp 2025-05-30 04:13:08 -05:00 committed by GitHub
parent c94051744a
commit 7c792f409f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 230 additions and 171 deletions

View file

@ -337,7 +337,7 @@ export default class DhpPC extends foundry.abstract.TypeDataModel {
get refreshableFeatures() {
return this.parent.items.reduce(
(acc, x) => {
if (x.type === 'feature' && x.system.refreshData?.type) {
if (x.type === 'feature' && x.system.refreshData?.type === 'feature' && x.system.refreshData?.type) {
acc[x.system.refreshData.type].push(x);
}