Merge pull request #1726 from Ravikadri/master

This commit is contained in:
Hugo Bernier 2021-02-23 00:14:14 -05:00 committed by GitHub
commit ba1f260ce1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 9 deletions

View File

@ -45,6 +45,8 @@ The Web Part Use PnPjs library, Fluent-Ui-react components
Solution|Author(s)
--------|---------
React List Items Menu |[João Mendes](https://github.com/joaojmendes) ([@joaojmendes](https://twitter.com/joaojmendes))
React List Items Menu |[Ravi Chandra](https://github.com/Ravikadri)
## Version history
@ -52,6 +54,7 @@ Version|Date|Comments
-------|----|--------
1.0.0|November 20, 2020|Initial release
1.0.1|February 18, 2021|Added support for metadata columns
1.0.2|February 21, 2021|Fixed `gulp build` issues
## Disclaimer

View File

@ -3,7 +3,7 @@
"solution": {
"name": "react-list-items-menu-client-side-solution",
"id": "8b4a758d-a968-4e7c-a949-b42e7dd5ad14",
"version": "1.0.1.0",
"version": "1.0.2.0",
"includeClientSideAssets": true,
"skipFeatureDeployment": true,
"isDomainIsolated": false,

View File

@ -1,6 +1,6 @@
{
"name": "react-list-items-menu",
"version": "0.0.1",
"version": "1.0.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "react-list-items-menu",
"version": "1.0.1",
"version": "1.0.2",
"private": true,
"main": "lib/index.js",
"engines": {

View File

@ -3,10 +3,7 @@ import "@pnp/sp/items";
import "@pnp/sp/lists";
import "@pnp/sp/webs";
import {
sortBy,
uniqBy
} from "lodash";
import { sortBy, uniqBy } from "lodash";
import moment from "moment";
import { sp } from "@pnp/sp";
@ -56,12 +53,12 @@ export const useList = () => {
<RowLimit>1000</RowLimit>
</View>`;
console.log('group',_viewXml )
console.log("group", _viewXml);
const _groupHeadersResults = await sp.web.lists
.getById(listId)
.renderListDataAsStream({ ViewXml: _viewXml });
console.log(_groupHeadersResults.Row);
console.log(_groupHeadersResults.Row);
//console.log("groups", _groupHeadersResults.Row);
return uniqBy(_groupHeadersResults.Row, groupByField);
};