]> cat aescling's git repositories - mastodon.git/commitdiff
Fix tag rendering error in hashtag column settings (#17184)
authorRens Groothuijsen <l.groothuijsen@alumni.maastrichtuniversity.nl>
Sun, 26 Dec 2021 18:22:05 +0000 (19:22 +0100)
committerGitHub <noreply@github.com>
Sun, 26 Dec 2021 18:22:05 +0000 (19:22 +0100)
* Flatten tags in configuration to regular array before converting to JSON

* Render filter tags using toJS instead of toJSON

app/javascript/mastodon/features/hashtag_timeline/components/column_settings.js

index de1127b0d51a2cc3ce51b298068aa7147ac1a540..142118cefc06094ebb634ebc872bef0a57d1bb33 100644 (file)
@@ -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;
     }