From 5d776f80565f7a588feea1e292460aef29bd4d1c Mon Sep 17 00:00:00 2001 From: Kim Mantas Date: Thu, 1 Jun 2023 16:56:35 +0100 Subject: [PATCH] [#56] Fix issue with actors and items being created with the base document type. --- module/helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/helper.js b/module/helper.js index 5f310e6..e01438b 100644 --- a/module/helper.js +++ b/module/helper.js @@ -521,7 +521,7 @@ export class EntitySheetHelper { // Identify the template Actor types const collection = game.collections.get(this.documentName); const templates = collection.filter(a => a.getFlag("worldbuilding", "isTemplate")); - const defaultType = this.TYPES[0]; + const defaultType = this.TYPES.filter(t => t !== CONST.BASE_DOCUMENT_TYPE)[0] ?? CONST.BASE_DOCUMENT_TYPE; const types = { [defaultType]: game.i18n.localize("SIMPLE.NoTemplate") }