Skip to content

Commit

Permalink
[ArrayDataSource]: fixed problem with ItemsStorage.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuznietsov committed Apr 4, 2024
1 parent c8ec260 commit f5263e9
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions uui-core/src/data/processing/ArrayDataSource.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,11 @@ export class ArrayDataSource<TItem = any, TId = any, TFilter = any> extends Base
this.setProps(props);
const params = { getId: this.getId, complexIds: props.complexIds };
this.itemsStatusMap = newMap(params);
this.itemsStorage = new ItemsStorage({ items: [], params: params });
}

public setProps(props: ArrayDataSourceProps<TItem, TId, TFilter>) {
this.props = props;
if (!this.itemsStorage) {
this.itemsStorage = new ItemsStorage({
items: [],
params: { getId: this.getId, complexIds: this.props.complexIds },
});
}
}

public getById = (id: TId): TItem | undefined => {
Expand Down

0 comments on commit f5263e9

Please sign in to comment.