Added a check to avoid error when manipulating clocks with no active scene

This commit is contained in:
Justin Ross 2023-01-30 16:24:15 -08:00 committed by megastruktur
parent 4a48a612df
commit 2fdb7225cb

View file

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