Skip to content
This repository has been archived by the owner on Jan 18, 2021. It is now read-only.

cols() error on SP2016 #58

Open
danielstaleyedf opened this issue Dec 4, 2019 · 0 comments
Open

cols() error on SP2016 #58

danielstaleyedf opened this issue Dec 4, 2019 · 0 comments

Comments

@danielstaleyedf
Copy link

I haven't check SharePoint Online but commit 8f55385 of sprestlib.js is outputing an error.

The rest response puts the data in a 'results' property of 'Fields'.

Updating line 1245 to the following fixes the issue:
(arrData && arrData[0] && arrData[0].Fields && (Array.isArray(arrData[0].Fields) || arrData[0].Fields.results) ? (Array.isArray(arrData[0].Fields) ? arrData[0].Fields : arrData[0].Fields.results) : [] );

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant