From ce1c41e4148d2e3341883f96023369c0f6bedc71 Mon Sep 17 00:00:00 2001 From: Michael Grace Date: Sat, 15 May 2021 21:16:35 +0100 Subject: [PATCH] Fix Mark Unplayed Bug --- src/showplanner/index.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/showplanner/index.tsx b/src/showplanner/index.tsx index 3f6fb7f..187b82a 100644 --- a/src/showplanner/index.tsx +++ b/src/showplanner/index.tsx @@ -243,8 +243,11 @@ const Showplanner: React.FC = function() { weight: data.index, }); } - async function onCtxUnPlayedClick(e: any, data: { id: string }) { - dispatch(setItemPlayed(data.id, false)); + async function onCtxUnPlayedClick( + e: any, + data: { id: string; column: number } + ) { + dispatch(setItemPlayed(data.id, false, data.column)); } // Add support for reloading the show plan from the iFrames.