From 773c5065704aa38addbf4ceff9c02f771074d9e2 Mon Sep 17 00:00:00 2001 From: Oliver Date: Sun, 18 Jan 2026 23:33:35 -0700 Subject: [PATCH] Catch run-time error in situations where _doc is undefined --- module/apps/Artist.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/apps/Artist.mjs b/module/apps/Artist.mjs index 7bfa775..21b36cf 100644 --- a/module/apps/Artist.mjs +++ b/module/apps/Artist.mjs @@ -77,7 +77,7 @@ export class ArtistApp extends * we're editing an existing artist instead of creating a new one. */ _onFirstRender() { - if (this._doc.name) { + if (this._doc?.name) { this._updateFrame({ window: { title: this.title } }); }; };