mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 07:06:47 +02: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) {
|
async function onTopicMoved(data) {
|
||||||
if (ajaxify.data.template.category) {
|
if (ajaxify.data.template.category || String(data.toCid) === '-1') {
|
||||||
getTopicEl(data.tid).remove();
|
getTopicEl(data.tid).remove();
|
||||||
} else {
|
} else {
|
||||||
const category = await api.get(`/categories/${data.toCid}`);
|
const category = await api.get(`/categories/${data.toCid}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user