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

cols() error on SP2016 #58

@danielstaleyedf

Description

@danielstaleyedf

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) : [] );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions