From 3d7d7f77defbca487eca2ff288694204632c9103 Mon Sep 17 00:00:00 2001 From: Steve Bazyl Date: Fri, 23 Aug 2024 11:50:58 -0600 Subject: [PATCH] Fix processing listLabeels response (items -> labels) --- advanced/driveLabels.gs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/advanced/driveLabels.gs b/advanced/driveLabels.gs index 1e4ffa447..004a35089 100644 --- a/advanced/driveLabels.gs +++ b/advanced/driveLabels.gs @@ -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;