Skip to content

Commit b6150ea

Browse files
authored
fix: prevent undefined removeParents (#403)
Fixes: #378
1 parent 9f5d974 commit b6150ea

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drive/snippets/drive_v3/file_snippets/move_file_to_folder.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ async function moveFileToFolder(fileId, folderId) {
4141

4242
// Move the file to the new folder
4343
const previousParents = file.data.parents
44-
.map(function(parent) {
45-
return parent.id;
46-
})
4744
.join(',');
4845
const files = await service.files.update({
4946
fileId: fileId,

0 commit comments

Comments
 (0)