Use state instead of component hand-down for managing filter
This commit is contained in:
@@ -25,7 +25,6 @@ export default class Operations extends React.Component {
|
||||
authActions,
|
||||
authSelectors,
|
||||
getConfigs,
|
||||
filter,
|
||||
fn
|
||||
} = this.props
|
||||
|
||||
@@ -37,6 +36,8 @@ export default class Operations extends React.Component {
|
||||
let showSummary = layoutSelectors.showSummary()
|
||||
let { docExpansion, displayOperationId, displayRequestDuration, maxDisplayedTags } = getConfigs()
|
||||
|
||||
let filter = layoutSelectors.currentFilter()
|
||||
|
||||
if (filter) {
|
||||
if (filter !== true) {
|
||||
taggedOps = taggedOps.filter((tagObj, tag) => {
|
||||
|
||||
Reference in New Issue
Block a user