From 179570b5866ec8b808d2adea56a154b89088e2ff Mon Sep 17 00:00:00 2001 From: markbmullins Date: Sun, 6 Dec 2020 10:52:27 -0500 Subject: [PATCH] Added guard clause for when quest doesn't exist --- src/plugins/quests/quest-journal-plugin.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/quests/quest-journal-plugin.ts b/src/plugins/quests/quest-journal-plugin.ts index 4294d73e4..2c025f364 100644 --- a/src/plugins/quests/quest-journal-plugin.ts +++ b/src/plugins/quests/quest-journal-plugin.ts @@ -6,6 +6,9 @@ import { pluginActions } from '@server/game-server'; export const action: buttonAction = (details) => { const { player, buttonId } = details; const [questData] = pluginActions.quest.filter((quest) => quest.quest.questTabId === buttonId); + if(!questData) { + return; + } const quest = questData.quest; const [playerQuest] = player.quests.filter(