From 0a5bda430c1641d8a81fff4440d94dd94f46c9ef Mon Sep 17 00:00:00 2001 From: thuhole Date: Tue, 21 Jul 2020 23:59:47 +0800 Subject: [PATCH] fold UI update --- src/Flows.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Flows.js b/src/Flows.js index 5983607..8813b3f 100644 --- a/src/Flows.js +++ b/src/Flows.js @@ -637,7 +637,7 @@ class FlowSidebar extends PureComponent { class FlowItemRow extends PureComponent { constructor(props) { super(props); - let needFold = + this.needFold = FOLD_TAGS.indexOf(props.info.tag) > -1 && (props.search_param === '热榜' || !props.search_param) && window.config.fold; @@ -648,7 +648,7 @@ class FlowItemRow extends PureComponent { info: Object.assign({}, props.info, { variant: {} }), hidden: window.config.block_words.some((word) => props.info.text.includes(word), - ) || needFold, + ) || this.needFold, attention: props.attention_override === null ? false : props.attention_override, cached: true, // default no display anything @@ -864,7 +864,7 @@ class FlowItemRow extends PureComponent { {this.props.info.tag} )}