Skip to content

Commit bc07695

Browse files
committed
Disable eslint react/prop-types rule on commentsStore; revert previous change
1 parent ab2e32a commit bc07695

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

client/app/stores/commentsStore.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1+
/* eslint react/prop-types: 0 */
12
import { compose, createStore, applyMiddleware, combineReducers } from 'redux';
23
import thunkMiddleware from 'redux-thunk';
34
import loggerMiddleware from '../middlewares/loggerMiddleware';
45
import reducers from '../reducers';
56
import { initalStates } from '../reducers';
67

78
export default props => {
9+
const initialComments = props;
810
const { $$commentsState } = initalStates;
911
const initialState = {
1012
$$commentsStore: $$commentsState.merge({
11-
$$comments: props,
13+
$$comments: initialComments,
1214
}),
1315
};
1416

0 commit comments

Comments
 (0)