aio-popup 2.0.2 → 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.
- package/index.js +4 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { Icon } from '@mdi/react';
|
|
|
7
7
|
import { mdiClose, mdiChevronRight, mdiChevronLeft } from '@mdi/js';
|
|
8
8
|
import RVD from 'react-virtual-dom';
|
|
9
9
|
import $ from 'jquery';
|
|
10
|
-
import './
|
|
10
|
+
import './index.css';
|
|
11
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
12
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
13
13
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -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
|
}
|