fix: client-side handling of category selector when cross-posting so only local cids are sent to backend

This commit is contained in:
Julian Lam
2025-12-31 10:08:12 -05:00
parent e5ee52e5da
commit ea417b062b

View File

@@ -49,7 +49,7 @@ define('forum/topic/crosspost', [
}
function onCategoriesSelected(data) {
({ selectedCids } = data);
selectedCids = data.selectedCids.filter(utils.isNumber);
if (data.changed) {
modal.find('#crosspost_thread_commit').prop('disabled', false);
}