From 5f75a209d94dd1f065c179cfc595ba883f79e8c0 Mon Sep 17 00:00:00 2001 From: Melon-PieldeSapo Date: Tue, 17 Dec 2024 14:28:08 +0100 Subject: [PATCH] add default return --- module/mosh.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/mosh.js b/module/mosh.js index ae21b6e..60a82bc 100644 --- a/module/mosh.js +++ b/module/mosh.js @@ -1027,6 +1027,8 @@ export async function fromIdUuid(id_uuid, options={}){ return playlistData; } } + //if we get here we have not found anything with that id. + return null; } function getSceneFromId(sceneId){ return game.scenes.filter(i=> i.id == sceneId)[0];