fix: props.list empty
This commit is contained in:
parent
4c78ede7c2
commit
a6dfab47d5
@ -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">
|
||||
|
Loading…
x
Reference in New Issue
Block a user