Fix setting unplayed to specific channel / item.

This commit is contained in:
Matthew Stratford 2021-05-12 22:33:44 +01:00
parent c6f3e32ad2
commit e3ee9ada02

View file

@ -243,8 +243,11 @@ const Showplanner: React.FC = function() {
weight: data.index, weight: data.index,
}); });
} }
async function onCtxUnPlayedClick(e: any, data: { id: string }) { async function onCtxUnPlayedClick(
dispatch(setItemPlayed(data.id, false)); e: any,
data: { id: string; column: number; index: number }
) {
dispatch(setItemPlayed(data.id.toString(), false, data.column));
} }
// Add support for reloading the show plan from the iFrames. // Add support for reloading the show plan from the iFrames.