mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
fix: topic thumbnail removal error
Relaxed DOM selector to accommodate changed tpl
This commit is contained in:
@@ -93,8 +93,8 @@ define('topicThumbs', [
|
||||
return;
|
||||
}
|
||||
|
||||
const id = ev.target.closest('.media[data-id]').getAttribute('data-id');
|
||||
const path = ev.target.closest('.media[data-path]').getAttribute('data-path');
|
||||
const id = ev.target.closest('[data-id]').getAttribute('data-id');
|
||||
const path = ev.target.closest('[data-path]').getAttribute('data-path');
|
||||
api.del(`/topics/${id}/thumbs`, {
|
||||
path: path,
|
||||
}).then(() => {
|
||||
|
||||
Reference in New Issue
Block a user