From 64064bd5e4b9e8202a3d5d0dd6d7d6d5579deb7c Mon Sep 17 00:00:00 2001 From: Marks Polakovs Date: Wed, 28 Apr 2021 09:16:42 +0100 Subject: [PATCH] Whoops, derp --- src/showplanner/state.ts | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/showplanner/state.ts b/src/showplanner/state.ts index 9b2731a..4133960 100644 --- a/src/showplanner/state.ts +++ b/src/showplanner/state.ts @@ -508,14 +508,17 @@ export const removeItem = ( if (getState().settings.saveShowPlanChanges) { const result = await api.updateShowplan(timeslotId, ops); if (!result.every((x) => x.status)) { - Sentry.captureException(new Error("Showplan update failure [addItem]"), { - contexts: { - updateShowplan: { - ops, - result, + Sentry.captureException( + new Error("Showplan update failure [removeItem]"), + { + contexts: { + updateShowplan: { + ops, + result, + }, }, - }, - }); + } + ); dispatch(showplan.actions.planSaveError("Failed to update show plan.")); return; }