1
0
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:
Sebastian Malton 2021-04-15 08:44:17 -04:00
parent c873103073
commit c30ddcb036

View File

@ -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}</>