diff --git a/samples/react-faqapp/README.md b/samples/react-faqapp/README.md index c6afaf872..8e22c2c5a 100644 --- a/samples/react-faqapp/README.md +++ b/samples/react-faqapp/README.md @@ -35,12 +35,14 @@ extensions: Solution|Author(s) --------|--------- react-FAQApp | Ashok Swain - LinkedIn: https://www.linkedin.com/in/ashok-kumar-swain-2627a514 +react-FAQApp | Abderahman Moujahid ## Version history Version|Date|Comments -------|----|-------- -1.0 | April 25, 2020 | Initial release +1.0.0 | April 25, 2020 | Initial release +1.0.1 | October 30, 2020 | Fix limit 100 items ## Disclaimer diff --git a/samples/react-faqapp/config/package-solution.json b/samples/react-faqapp/config/package-solution.json index 0fb5c9bf3..821664907 100644 --- a/samples/react-faqapp/config/package-solution.json +++ b/samples/react-faqapp/config/package-solution.json @@ -3,7 +3,7 @@ "solution": { "name": "spfxwebparts-client-side-solution", "id": "f3b9b2b7-533c-42db-9a81-d3ea68e1e8b6", - "version": "1.0.0.0", + "version": "1.0.1.0", "includeClientSideAssets": true, "isDomainIsolated": false }, diff --git a/samples/react-faqapp/src/services/FaqServices.ts b/samples/react-faqapp/src/services/FaqServices.ts index 4c42e6137..9221db65f 100644 --- a/samples/react-faqapp/src/services/FaqServices.ts +++ b/samples/react-faqapp/src/services/FaqServices.ts @@ -64,7 +64,8 @@ export class FaqServices implements IFaqServices { try { const FaqProp:IFaqProp[] = []; let restUrl: string = this._currentWebUrl; - restUrl += "/_api/web/lists/getbytitle('" + listName + "')/items?$select=Id,Title,Answer,Category,CategorySortOrder,QuestionSortOrder,Modified"; + //fix: load more than 100 items using top=5000 + restUrl += "/_api/web/lists/getbytitle('" + listName + "')/items?$select=Id,Title,Answer,Category,CategorySortOrder,QuestionSortOrder,Modified&$top=5000"; return await this._spHttpClient.get(restUrl, SPHttpClient.configurations.v1, { headers: {