Use state instead of component hand-down for managing filter

This commit is contained in:
Kyle Shockey
2017-07-11 21:54:56 -07:00
parent cf12091d93
commit 28f7a15fe9
5 changed files with 16 additions and 33 deletions

View File

@@ -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) => {