Temp: Show weight statuses for debugging.

This commit is contained in:
Matthew Stratford 2021-05-12 22:34:28 +01:00
parent e3ee9ada02
commit d79dd32bd6
2 changed files with 9 additions and 0 deletions

View file

@ -87,6 +87,10 @@ export const Item = memo(function Item({
> >
Explicit Explicit
</small> </small>
<code>
{"weight" in x && x.weight} {index}{" "}
{"weight" in x && x.weight !== index && "!!!!!!!!!!!"}
</code>
</ContextMenuTrigger> </ContextMenuTrigger>
</div> </div>
)} )}

View file

@ -334,6 +334,11 @@ export function Player({ id }: { id: number }) {
? "LOAD FAILED" ? "LOAD FAILED"
: "No Media Selected"} : "No Media Selected"}
</strong> </strong>
<code>
{playerState.loadedItem &&
"weight" in playerState.loadedItem &&
playerState.loadedItem.weight}
</code>
<small <small
className={ className={
"border rounded border-danger text-danger p-1 m-1" + "border rounded border-danger text-danger p-1 m-1" +