box-community / box-javascript-sdk

A promise-based client-side SDK for making requests to the Box API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reference error in client.folders.copy

kksharma1618 opened this issue · comments

Error:
ReferenceError: REQUIRED_VALUES is not defined

At this line: https://github.com/allenmichael/box-javascript-sdk/blob/809b03e9af2ac585c3144d09e028ef92a423a75c/src/managers/folders.js#L123

Replacing it by:

this._getFolder(options, [MODEL_VALUES.PARENT, MODEL_VALUES.ID, MODEL_VALUES.NAME], skipValidation, ignoreModelValues);

works.

@kksharma1618 This is resolved with the new build. Sorry about the wait!