fix: props.list empty

This commit is contained in:
julius 2025-05-19 14:59:10 +02:00
parent 4c78ede7c2
commit a6dfab47d5
Signed by: julius
GPG Key ID: C80A63E6A5FD7092

View File

@ -15,7 +15,7 @@ function PlayerList(props: PlayerListProps) {
{...props}
animation={200}
swapThreshold={0.2}
style={{ minHeight: props.list?.length < 1 ? 64 : 32 }}
style={{ minHeight: props.list && props.list?.length < 1 ? 64 : 32 }}
>
{props.list?.map((item, index) => (
<div key={item.id} className="item">