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
pull/1653/head
Rens Groothuijsen 2021-12-26 19:22:05 +01:00 committed by GitHub
parent d78ddb1cea
commit e65080181a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View 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;
}