remove the maxNumber checking
This commit is contained in:
parent
890a2f0a9b
commit
8484a4a2a4
|
@ -173,8 +173,6 @@ export default class TodoWebPart extends BaseClientSideWebPart<ITodoWebPartProps
|
|||
*/
|
||||
private _readItems(): Promise<void> {
|
||||
this.clearError();
|
||||
|
||||
if (this._dataProvider.maxNumberOfTasks > this._todoComponentData.selectedListItems.length) {
|
||||
this._renderTodoComponent({ loadingStatus: LoadingStatus.FetchingTasks });
|
||||
|
||||
return this._dataProvider.readItems()
|
||||
|
@ -188,13 +186,6 @@ export default class TodoWebPart extends BaseClientSideWebPart<ITodoWebPartProps
|
|||
this.renderError(error);
|
||||
}
|
||||
);
|
||||
} else {
|
||||
this._renderTodoComponent({
|
||||
selectedListItems: this._todoComponentData.selectedListItems.slice(0, this._dataProvider.maxNumberOfTasks)
|
||||
});
|
||||
|
||||
return Promise.resolve(undefined);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -316,8 +316,6 @@ export default class TodoWebPart extends BaseClientSideWebPart<ITodoWebPartProps
|
|||
*/
|
||||
private _readItems(): Promise<void> {
|
||||
this.clearError();
|
||||
|
||||
if (this._dataProvider.maxNumberOfTasks > this._todoComponentData.selectedListItems.length) {
|
||||
this._renderTodoComponent({ loadingStatus: LoadingStatus.FetchingTasks });
|
||||
|
||||
return this._dataProvider.readItems()
|
||||
|
@ -331,13 +329,6 @@ export default class TodoWebPart extends BaseClientSideWebPart<ITodoWebPartProps
|
|||
this.renderError(error);
|
||||
}
|
||||
);
|
||||
} else {
|
||||
this._renderTodoComponent({
|
||||
selectedListItems: this._todoComponentData.selectedListItems.slice(0, this._dataProvider.maxNumberOfTasks)
|
||||
});
|
||||
|
||||
return Promise.resolve(undefined);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -316,8 +316,6 @@ export default class TodoWebPart extends BaseClientSideWebPart<ITodoWebPartProps
|
|||
*/
|
||||
private _readItems(): Promise<void> {
|
||||
this.clearError();
|
||||
|
||||
if (this._dataProvider.maxNumberOfTasks > this._todoComponentData.selectedListItems.length) {
|
||||
this._renderTodoComponent({ loadingStatus: LoadingStatus.FetchingTasks });
|
||||
|
||||
return this._dataProvider.readItems()
|
||||
|
@ -331,13 +329,6 @@ export default class TodoWebPart extends BaseClientSideWebPart<ITodoWebPartProps
|
|||
this.renderError(error);
|
||||
}
|
||||
);
|
||||
} else {
|
||||
this._renderTodoComponent({
|
||||
selectedListItems: this._todoComponentData.selectedListItems.slice(0, this._dataProvider.maxNumberOfTasks)
|
||||
});
|
||||
|
||||
return Promise.resolve(undefined);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue