From 2fdb7225cb2ca9ee423455b0144004e2e58d49a3 Mon Sep 17 00:00:00 2001 From: Justin Ross Date: Mon, 30 Jan 2023 16:24:15 -0800 Subject: [PATCH] Added a check to avoid error when manipulating clocks with no active scene --- module/blades-clock-sheet.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/blades-clock-sheet.js b/module/blades-clock-sheet.js index 1389def..0f81bb6 100644 --- a/module/blades-clock-sheet.js +++ b/module/blades-clock-sheet.js @@ -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);