Skip to content

Commit e78853a

Browse files
assafshemeshgrant
authored andcommitted
Update index.js (#26)
fix error: The API returned an error: ReferenceError: data is not defined
1 parent 3a49891 commit e78853a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

slides/quickstart/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function listSlides(auth) {
9393
if (err) return console.log('The API returned an error: ' + err);
9494
const length = res.data.slides.length;
9595
console.log('The presentation contains %s slides:', length);
96-
data.slides.map((slide, i) => {
96+
res.data.slides.map((slide, i) => {
9797
console.log(`- Slide #${i + 1} contains ${slide.pageElements.length} elements.`);
9898
});
9999
});

0 commit comments

Comments
 (0)