mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-23 07:32:02 +01:00
Fix tag rendering error in hashtag column settings (#17184)
* Flatten tags in configuration to regular array before converting to JSON * Render filter tags using toJS instead of toJSON
This commit is contained in:
parent
d78ddb1cea
commit
e65080181a
1 changed files with 2 additions and 2 deletions
|
@ -33,8 +33,8 @@ class ColumnSettings extends React.PureComponent {
|
|||
tags (mode) {
|
||||
let tags = this.props.settings.getIn(['tags', mode]) || [];
|
||||
|
||||
if (tags.toJSON) {
|
||||
return tags.toJSON();
|
||||
if (tags.toJS) {
|
||||
return tags.toJS();
|
||||
} else {
|
||||
return tags;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue