mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +01:00
common: do not render undefined items
This commit is contained in:
@@ -81,11 +81,11 @@ export class VirtualizedGrouping<T> {
|
||||
};
|
||||
}
|
||||
|
||||
item(index: number): Promise<{ item: T; group?: GroupHeader }>;
|
||||
item(index: number): Promise<{ item?: T; group?: GroupHeader }>;
|
||||
item(
|
||||
index: number,
|
||||
operate: BatchOperator<T>
|
||||
): Promise<{ item: T; group?: GroupHeader; data: unknown }>;
|
||||
): Promise<{ item?: T; group?: GroupHeader; data: unknown }>;
|
||||
async item(index: number, operate?: BatchOperator<T>) {
|
||||
const batchIndex = Math.floor(index / this.batchSize);
|
||||
const { items, groups, data } =
|
||||
|
||||
Reference in New Issue
Block a user