From 7fb818d4cef09dd74f9fcfd99381a7c0e7064a56 Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Thu, 6 Oct 2016 16:44:41 -0400 Subject: PLT-3105 Fixed bugs with FileInfos migration, including duplicate FileInfos being saved (#4134) * Added a limit to GetByPath for the rare cases when two old files had the same path * Fixed files still being displayed for deleted posts * Added a lock to prevent migrateFilenamesToFileInfos from migrating multiple posts at once --- webapp/stores/post_store.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'webapp/stores/post_store.jsx') diff --git a/webapp/stores/post_store.jsx b/webapp/stores/post_store.jsx index 22f47fd40..2d0d7a674 100644 --- a/webapp/stores/post_store.jsx +++ b/webapp/stores/post_store.jsx @@ -318,7 +318,7 @@ class PostStoreClass extends EventEmitter { // make sure to copy the post so that component state changes work properly postList.posts[post.id] = Object.assign({}, post, { state: Constants.POST_DELETED, - fileIds: [] + file_ids: [] }); } } -- cgit v1.2.3-1-g7c22