Skip to content

Commit

Permalink
fix: thumb count not updated when uploading multiple thumbs at a time
Browse files Browse the repository at this point in the history
  • Loading branch information
psychobunny committed Mar 30, 2021
1 parent 6406e52 commit 1ad1787
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion public/src/modules/topicThumbs.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ define('topicThumbs', ['api', 'bootbox', 'uploader', 'benchpress', 'translator',
callback: () => {
Thumbs.upload(id).then(() => {
Thumbs.modal.open({ ...payload, modal });
resolve();
require(['composer'], (composer) => {
composer.updateThumbCount(id, $(`[component="composer"][data-uuid="${id}"]`));
resolve();
});
});
return false;
},
Expand Down

0 comments on commit 1ad1787

Please sign in to comment.