1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

debug - 新規投稿が不可能

This commit is contained in:
Rokt33r
2015-12-13 19:10:05 +09:00
parent 57912b5a5a
commit 3bd5d6b9f6
2 changed files with 3 additions and 5 deletions

View File

@@ -181,12 +181,10 @@ function articles (state = initialArticles, action) {
let targetIndex = _.findIndex(state, _article => article.key === _article.key)
if (targetIndex < 0) state.unshift(article)
else {
Object.assign(state[targetIndex], article)
}
else Object.assign(state[targetIndex], article)
if (article.status !== 'NEW') dataStore.setArticles(state)
else isCreatingNew = true
else isCreatingNew = true
return state
}
case ARTICLE_DESTROY: