1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-14 10:16:26 +00:00

Url share done

This commit is contained in:
Rokt33r
2015-12-13 14:22:45 +09:00
parent a4c72a9a86
commit 24e2544544
11 changed files with 291 additions and 295 deletions

View File

@@ -180,7 +180,9 @@ function articles (state = initialArticles, action) {
let targetIndex = _.findIndex(state, _article => article.key === _article.key)
if (targetIndex < 0) state.unshift(article)
else state.splice(targetIndex, 1, article)
else {
Object.assign(state[targetIndex], article)
}
if (article.status !== 'NEW') dataStore.setArticles(state)
else isCreatingNew = true