Storybook control returns a different propType

Viewed 111

I have a prop called displayMap which is supposed to be an object of class Map. I followed this answer to declare the propType of displayMap.

The controls in Storybook show that the displayMap is actually an object and whenever I click the SET OBJECT button, I get this error:

Invalid prop displayMap of type Object supplied to component-name, expected instance of Map.

0 Answers
Related