u
This commit is contained in:
@@ -475,6 +475,7 @@ export class OrderList extends PureComponent {
|
||||
this.state = {
|
||||
items: orderAutomat.getItems(),
|
||||
unfilteredTotal: orderAutomat.state.unfilteredTotal ?? 0,
|
||||
filterKey: orderAutomat.getFilterKey?.() ?? '',
|
||||
partiesById: {},
|
||||
busyId: null,
|
||||
};
|
||||
@@ -494,6 +495,7 @@ export class OrderList extends PureComponent {
|
||||
this.unsub = orderAutomat.subscribe(this, (state) => ({
|
||||
items: state.items,
|
||||
unfilteredTotal: state.unfilteredTotal ?? 0,
|
||||
filterKey: orderAutomat.getFilterKey(state),
|
||||
}));
|
||||
void this.loadParties();
|
||||
}
|
||||
@@ -583,7 +585,7 @@ export class OrderList extends PureComponent {
|
||||
}
|
||||
|
||||
render() {
|
||||
const { items, unfilteredTotal, partiesById, busyId } = this.state;
|
||||
const { items, unfilteredTotal, filterKey, partiesById, busyId } = this.state;
|
||||
|
||||
rowContext.partiesById = partiesById;
|
||||
rowContext.busyId = busyId;
|
||||
@@ -615,6 +617,7 @@ export class OrderList extends PureComponent {
|
||||
reserveBottom={32}
|
||||
minPageSize={8}
|
||||
minHeight={0}
|
||||
resetKey={filterKey}
|
||||
items={items || []}
|
||||
totalCount={items ? items.length : 0}
|
||||
unfilteredTotal={unfilteredTotal}
|
||||
|
||||
Reference in New Issue
Block a user