A platform for community discussion. Free, open, simple.
FIX: Topic footer dropdown/anonymousOnly null handling (#35072)
David Taylor0d6227d0bc59
diff --git a/app/assets/javascripts/discourse/app/components/topic-footer-buttons.gjs b/app/assets/javascripts/discourse/app/components/topic-footer-buttons.gjsindex a086b43b300..373bd4c3c3d 100644--- a/app/assets/javascripts/discourse/app/components/topic-footer-buttons.gjs+++ b/app/assets/javascripts/discourse/app/components/topic-footer-buttons.gjs@@ -53,7 +53,10 @@ export default class TopicFooterButtons extends Component {get inlineActionables() {return (this.inlineButtons- .filter((button) => !button.dropdown && !button.anonymousOnly)+ .filter(+ (button) =>+ button.dropdown === false && button.anonymousOnly === false+ ).concat(this.inlineDropdowns).sort((a, b) => compare(a?.priority, b?.priority))// Reversing the array is necessary because when priorities are not set,