]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Fix tag rendering error in hashtag column settings
authorRens Groothuijsen <l.groothuijsen@alumni.maastrichtuniversity.nl>
Sun, 26 Dec 2021 18:22:05 +0000 (19:22 +0100)
committerClaire <claire.github-309c@sitedethib.com>
Mon, 27 Dec 2021 14:22:12 +0000 (15:22 +0100)
Port e65080181af82c14d3441a0890f2ba0a6fb9cd7e to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
app/javascript/flavours/glitch/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;
     }