Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit 606780e

Browse files
fix(#289): slide iteration with a good old fashioned for loop
1 parent e3d8b53 commit 606780e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

studio/src/app/services/editor/publish/publish.service.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,8 @@ export class PublishService {
304304
try {
305305
const apiSlideIds: string[] = [];
306306

307-
for (const slideId in deck.data.slides) {
307+
for (let i: number = 0; i < deck.data.slides.length; i++) {
308+
const slideId: string = deck.data.slides[i];
308309
const apiSlideId: string = await this.fetchAndCreateOrUpdateSlide(deck, slideId);
309310
apiSlideIds.push(apiSlideId);
310311
}

0 commit comments

Comments
 (0)