aio-popup 3.0.0 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +3 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -157,8 +157,10 @@ class Popups extends Component {
157
157
  let {
158
158
  modals
159
159
  } = this.state;
160
- console.log(modals);
161
160
  let modal = modals.find(o => o.id === arg);
161
+ if (!modal) {
162
+ return;
163
+ }
162
164
  if (modal.onClose) {
163
165
  modal.onClose();
164
166
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aio-popup",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "handle all types of popup and modals in react",
5
5
  "main": "index.js",
6
6
  "scripts": {