This commit is contained in:
seb
2026-10-14 00:10:50 +02:00
parent f6cb3d3e35
commit 56a86fc005
6 changed files with 148 additions and 12 deletions

View File

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