fix: posts without topic

This commit is contained in:
trisua 2025-08-04 15:06:08 -04:00
parent 548a6dcf4e
commit 80a39e7489

View file

@ -226,7 +226,7 @@
content: e.target.content.value, content: e.target.content.value,
community: !is_selected_stack ? selected_community : \"0\", community: !is_selected_stack ? selected_community : \"0\",
stack: is_selected_stack ? selected_community : \"0\", stack: is_selected_stack ? selected_community : \"0\",
topic: e.target.topic.selectedOptions[0].value, topic: (e.target.topic || { selectedOptions: [{ value: \"0\" }] }).selectedOptions[0].value,
poll: poll_data[1], poll: poll_data[1],
title: e.target.title.value, title: e.target.title.value,
}), }),