Skip to content

Commit 4af4f45

Browse files
committed
Fix useSelector syntax
1 parent 86439e3 commit 4af4f45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

admin/src/containers/ConfigPage/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import ActionButtons from '../../components/ActionButtons';
88

99
const ConfigPage = () => {
1010
const dispatch = useDispatch();
11-
const isLoading = useSelector((state) => state.getIn(['config', 'isLoading']), Map());
12-
const configDiff = useSelector((state) => state.getIn(['config', 'configDiff']), Map());
11+
const isLoading = useSelector((state) => state.getIn(['config', 'isLoading'], Map({})));
12+
const configDiff = useSelector((state) => state.getIn(['config', 'configDiff'], Map({})));
1313

1414
useEffect(() => {
1515
dispatch(getAllConfigDiff());

0 commit comments

Comments
 (0)