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>
|
</li>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
props.rows.length == 0
|
||||||
|
? <pre>empty!</pre>
|
||||||
|
: null
|
||||||
|
}
|
||||||
</ul>
|
</ul>
|
||||||
);
|
);
|
||||||
}
|
}
|
|
@ -94,7 +94,7 @@ export function Index() {
|
||||||
{
|
{
|
||||||
data
|
data
|
||||||
? <Posts rows={data.filter(x => selected ? selected?.indexOf(x) === -1 : true)} onSelectChange={select} />
|
? <Posts rows={data.filter(x => selected ? selected?.indexOf(x) === -1 : true)} onSelectChange={select} />
|
||||||
: <></>
|
: <pre>no data!</pre>
|
||||||
}
|
}
|
||||||
</InfiniteScroller>
|
</InfiniteScroller>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue