print something when there is nothing
This commit is contained in:
parent
c23994091b
commit
0b9547a494
|
@ -28,6 +28,11 @@ export function Posts(props: PostsProps) {
|
|||
</li>
|
||||
)
|
||||
}
|
||||
{
|
||||
props.rows.length == 0
|
||||
? <pre>empty!</pre>
|
||||
: null
|
||||
}
|
||||
</ul>
|
||||
);
|
||||
}
|
|
@ -94,7 +94,7 @@ export function Index() {
|
|||
{
|
||||
data
|
||||
? <Posts rows={data.filter(x => selected ? selected?.indexOf(x) === -1 : true)} onSelectChange={select} />
|
||||
: <></>
|
||||
: <pre>no data!</pre>
|
||||
}
|
||||
</InfiniteScroller>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue