Skip to content

Commit

Permalink
fix: 🐛 Deck uses an old call signature for creating slides
Browse files Browse the repository at this point in the history
  • Loading branch information
ghaiklor committed May 9, 2020
1 parent 1738ed1 commit f595679
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/kittik-deck/src/Deck.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,11 @@ export class Deck extends EventEmitter {
const globalShapes = declaration.shapes ?? [];
const globalAnimations = declaration.animations ?? [];

declaration.slides.forEach((slide) => this.addSlide(Slide.create(this.canvas, {
declaration.slides.forEach((slide) => this.addSlide(Slide.create({
...slide,
shapes: globalShapes.concat(slide.shapes),
animations: globalAnimations.concat(slide.animations ?? [])
})));
}, this.canvas)));
}

private initKeyboard (): void {
Expand Down

0 comments on commit f595679

Please sign in to comment.