ci: lint for ui

This commit is contained in:
undefined committed 2022-03-09 20:02:31 +08:00
1 parent c2db7d7797
commit 8bb072a5a4
11 files changed
+73 -91

No files matched your search

@@ -4,11 +4,11 @@ export default function reducer(state = {}, action) {
switch (action.type) {
case 'DIALOGUES_LOAD_DIALOGUES_FULFILLED': {
const { messages } = action.payload;
return {...state, ..._.keyBy(messages, 'udoc._id')};
return { ...state, ..._.keyBy(messages, 'udoc._id') };
}
case 'DIALOGUES_CREATE': {
const { user } = action.payload;
if (state[user._id]) return state
if (state[user._id]) return state;
return {
...state,
[user._id]: {