mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-14 20:40:22 +01:00
fix: moving topic to cid=-1 will remove it from list
This commit is contained in:
@@ -285,7 +285,7 @@ define('forum/category/tools', [
|
||||
}
|
||||
|
||||
async function onTopicMoved(data) {
|
||||
if (ajaxify.data.template.category) {
|
||||
if (ajaxify.data.template.category || String(data.toCid) === '-1') {
|
||||
getTopicEl(data.tid).remove();
|
||||
} else {
|
||||
const category = await api.get(`/categories/${data.toCid}`);
|
||||
|
||||
Reference in New Issue
Block a user