Skip to content

Commit

Permalink
fix(slide): Fixes issue with passing slides array
Browse files Browse the repository at this point in the history
  • Loading branch information
ghaiklor committed Nov 23, 2015
1 parent 215c667 commit a880a24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Slide.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ export class Slide {
*/
constructor(shapes) {
this._shapes = shapes.map(shape => {
if (shape.name === 'Rectangle') return Rectangle.fromObject(shape.options);
if (shape.name === 'Text') return Text.fromObject(shape.options);
if (shape.name === 'Rectangle') return Rectangle.fromObject(shape);
if (shape.name === 'Text') return Text.fromObject(shape);
});
}

Expand Down

0 comments on commit a880a24

Please sign in to comment.