Skip to content

Node.js based forum software built for the modern web

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

Julian Lamea417b062b8e
diff --git a/public/src/client/topic/crosspost.js b/public/src/client/topic/crosspost.js
index 268a5f9446..9242708a87 100644
--- a/public/src/client/topic/crosspost.js
+++ b/public/src/client/topic/crosspost.js
@@ -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);
}