Catch run-time error in situations where _doc is undefined

This commit is contained in:
Oliver 2026-01-18 23:33:35 -07:00
parent 4fcff3e06e
commit 773c506570

View file

@ -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 } });
};
};