mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-14 10:16:26 +00:00
Url share done
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user