Skip to content

Commit

Permalink
fix: prevent undefined removeParents (#403)
Browse files Browse the repository at this point in the history
Fixes: #378
  • Loading branch information
Exter-dg authored May 3, 2023
1 parent 9f5d974 commit b6150ea
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drive/snippets/drive_v3/file_snippets/move_file_to_folder.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ async function moveFileToFolder(fileId, folderId) {

// Move the file to the new folder
const previousParents = file.data.parents
.map(function(parent) {
return parent.id;
})
.join(',');
const files = await service.files.update({
fileId: fileId,
Expand Down

0 comments on commit b6150ea

Please sign in to comment.