filestack / filestack-react

Official React component for Filestack - API and content management system that makes it easy to add powerful file uploading and transformation capabilities to any web or mobile application.
https://www.filestack.com
MIT License
164 stars 40 forks source link

componentDisplayMode crashes if only customText is set #70

Closed mpoisot closed 5 years ago

mpoisot commented 5 years ago

If I set none or all 3 properties it works fine. But if I only set 'customText' I get a crash. This was surprising since all three options have defaults.

componentDisplayMode={{
  customText: "Image",
}}
AndrzejSala commented 5 years ago

There was a 'static defaultProps' which was checking only if property exists or not.

Fixed since 3.1.0