u
This commit is contained in:
@@ -110,6 +110,7 @@ class ArtikelMarkenPage extends PureComponent {
|
||||
status: brandAutomat.state.status,
|
||||
error: brandAutomat.state.error ? backendErrorFrom({ message: brandAutomat.state.error }) : null,
|
||||
brands: brandAutomat.state.filteredBrands ?? brandAutomat.state.brands,
|
||||
totalCount: brandAutomat.state.brands?.length ?? 0,
|
||||
};
|
||||
this.searchRef = createRef();
|
||||
this.handleRetry = this.handleRetry.bind(this);
|
||||
@@ -120,6 +121,7 @@ class ArtikelMarkenPage extends PureComponent {
|
||||
|
||||
this.unsub = brandAutomat.subscribe(this, (state) => ({
|
||||
brands: state.filteredBrands,
|
||||
totalCount: state.brands?.length ?? 0,
|
||||
status: state.status,
|
||||
error: state.error ? backendErrorFrom({ message: state.error }) : null,
|
||||
}));
|
||||
@@ -159,6 +161,7 @@ class ArtikelMarkenPage extends PureComponent {
|
||||
minPageSize={8}
|
||||
minHeight={0}
|
||||
items={brands}
|
||||
totalCount={this.state.totalCount}
|
||||
renderItem={ArtikelMarke}
|
||||
/>
|
||||
</PanelTile>
|
||||
|
||||
Reference in New Issue
Block a user