Added a check to avoid error when manipulating clocks with no active scene
This commit is contained in:
parent
4a48a612df
commit
2fdb7225cb
1 changed files with 3 additions and 1 deletions
|
@ -58,7 +58,9 @@ export class BladesClockSheet extends BladesSheet {
|
|||
)
|
||||
);
|
||||
});
|
||||
await TokenDocument.updateDocuments( data, { parent: game.scenes.current } )
|
||||
if(game.scenes.current){
|
||||
await TokenDocument.updateDocuments( data, { parent: game.scenes.current } )
|
||||
}
|
||||
|
||||
// Update the Actor
|
||||
return this.object.update(formData);
|
||||
|
|
Reference in a new issue