mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
remove isReady from renderInfo
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
c873103073
commit
c30ddcb036
@ -351,14 +351,10 @@ export class ItemListLayout extends React.Component<ItemListLayoutProps> {
|
||||
}
|
||||
|
||||
renderInfo() {
|
||||
const { items, isReady, filters } = this;
|
||||
const { items, filters } = this;
|
||||
const allItemsCount = this.props.store.getTotalCount();
|
||||
const itemsCount = items.length;
|
||||
|
||||
if (!isReady) {
|
||||
return "?? items";
|
||||
}
|
||||
|
||||
if (filters.length > 0) {
|
||||
return (
|
||||
<><a onClick={this.toggleFilters}>Filtered</a>: {itemsCount} / {allItemsCount}</>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user