FIX: Topic footer dropdown/anonymousOnly null handling (#35072)

Followup to 813b494730
This commit is contained in:
David Taylor
2025-09-30 14:58:52 +01:00
committed by GitHub
parent 1a6bf7d0a7
commit 0d6227d0bc
@@ -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,