dekk-app / dekk

👁 A presentation tool written in react.js

Home Page:https://dekk-app.github.io/dekk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to use plugins with default values

TimPietrusky opened this issue · comments

Issue description

What is the desired way to use all plugins with their default values? Because doing it like this

<Deck>
    <Plugins>
    </Plugins>
</Deck>

is throwing an error:

index.js:260 Uncaught TypeError: Cannot read property 'type' of undefined
    at index.js:260
    at Array.map (<anonymous>)

Steps to reproduce

  • Add the Plugins component without any elements to the Deck

Versions

  1. yarn: 1.3.2
  2. node: 6.9.1
  3. dekk: 1.0.0-5

I fixed this in the new version. (wait for 1.0.0-6)

<Plugins/>

will not do anything but it will not throw an error. (Same goes for Elements)