Catch run-time error in situations where _doc is undefined
This commit is contained in:
parent
4fcff3e06e
commit
773c506570
1 changed files with 1 additions and 1 deletions
|
|
@ -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 } });
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue