This commit is contained in:
Nathan Bierema 2021-08-26 00:05:27 -04:00
parent 6b4dbed116
commit 2b42d543a1

View File

@ -1,4 +1,4 @@
import { fromJS, isAssociative } from 'immutable'; import { fromJS, isAssociative, Map } from 'immutable';
import isIterable from './isIterable'; import isIterable from './isIterable';
function iterateToKey(obj: any, key: string | number) { function iterateToKey(obj: any, key: string | number) {
@ -41,7 +41,7 @@ export default function getInspectedState<S>(
if (convertImmutable) { if (convertImmutable) {
try { try {
state = fromJS(state).toJS(); state = (fromJS(state) as Map<unknown, unknown>).toJS() as unknown as S;
} catch (e) {} // eslint-disable-line no-empty } catch (e) {} // eslint-disable-line no-empty
} }