mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-01 21:30:30 +01:00
fix: thumb count not updated when uploading multiple thumbs at a time
This commit is contained in:
@@ -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;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user