From d79dd32bd631093f47862b787cfe90f8b77b0654 Mon Sep 17 00:00:00 2001 From: Matthew Stratford Date: Wed, 12 May 2021 22:34:28 +0100 Subject: [PATCH] Temp: Show weight statuses for debugging. --- src/showplanner/Item.tsx | 4 ++++ src/showplanner/Player.tsx | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/src/showplanner/Item.tsx b/src/showplanner/Item.tsx index 4cb6d80..809156a 100644 --- a/src/showplanner/Item.tsx +++ b/src/showplanner/Item.tsx @@ -87,6 +87,10 @@ export const Item = memo(function Item({ > Explicit + + {"weight" in x && x.weight} {index}{" "} + {"weight" in x && x.weight !== index && "!!!!!!!!!!!"} + )} diff --git a/src/showplanner/Player.tsx b/src/showplanner/Player.tsx index 21f2b70..5b46cfd 100644 --- a/src/showplanner/Player.tsx +++ b/src/showplanner/Player.tsx @@ -334,6 +334,11 @@ export function Player({ id }: { id: number }) { ? "LOAD FAILED" : "No Media Selected"} + + {playerState.loadedItem && + "weight" in playerState.loadedItem && + playerState.loadedItem.weight} +