mirror of
https://github.com/discourse/discourse.git
synced 2026-08-10 04:58:31 -05:00
FIX: Topic footer dropdown/anonymousOnly null handling (#35072)
Followup to 813b494730
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user