Fix legacy context error

This commit is contained in:
futpib 2019-08-30 14:37:43 +03:00
parent cbf62ee326
commit 7dc2d218a3

View File

@ -118,7 +118,7 @@ class Modals extends React.PureComponent {
});
}, {
unloadModuleByIndex(index) {
const pai = getPaiByTypeAndIndex('module', index)(this.context.store.getState());
const pai = getPaiByTypeAndIndex('module', index)(this.props.store.getState());
if (pai && path([ pai.name, 'confirmUnload' ], modules)) {
return pai;
@ -202,10 +202,6 @@ class Modals extends React.PureComponent {
}
}
Modals.contextTypes = {
store: PropTypes.any,
};
module.exports = compose(
connect(
state => ({