Skip to content

Commit

Permalink
Fix processing listLabeels response (items -> labels)
Browse files Browse the repository at this point in the history
  • Loading branch information
sqrrrl authored Aug 23, 2024
1 parent 8102759 commit 3d7d7f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions advanced/driveLabels.gs
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ function listLabelsOnDriveItem(fileId) {
try {
const appliedLabels = Drive.Files.listLabels(fileId);

console.log('%d label(s) are applied to this file', appliedLabels.items.length);
console.log('%d label(s) are applied to this file', appliedLabels.labels.length);

appliedLabels.items.forEach((appliedLabel) => {
appliedLabels.labels.forEach((appliedLabel) => {
// Resource name of the label at the applied revision.
const labelName = 'labels/' + appliedLabel.id + '@' + appliedLabel.revisionId;

Expand Down

0 comments on commit 3d7d7f7

Please sign in to comment.