1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

switch folder properly after moving an article to other folder

This commit is contained in:
Rokt33r
2016-01-17 08:43:01 +09:00
parent 3cbfae83c1
commit e62fc11328

View File

@@ -165,7 +165,7 @@ export default class ArticleDetail extends React.Component {
dispatch(updateArticle(article))
let targetFolderKey = this.state.article.FolderKey
let targetFolderKey = e.target.value
if (status.targetFolders.length > 0) {
let targetFolder = _.findWhere(folders, {key: targetFolderKey})
dispatch(switchFolder(targetFolder.name))