From 30e1e358afab675ddaecbc209b6f9ac5b7283324 Mon Sep 17 00:00:00 2001 From: Dave Chen Date: Tue, 23 Jul 2019 15:14:54 -0700 Subject: [PATCH] let component reset feature list when it construct --- src/components/Project/Features/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/Project/Features/index.js b/src/components/Project/Features/index.js index 6315b012..bfbac92d 100644 --- a/src/components/Project/Features/index.js +++ b/src/components/Project/Features/index.js @@ -118,6 +118,9 @@ export default class Features extends React.Component { // Bind socketHandler to THIS so when we pass it to the socket // lib and refernece 'this' its still 'us' this.socketHandler = this.socketHandler.bind(this); + + // reset feature list when component construct + this.props.store.app.setFeatures({ showDeployed: this.state.showDeployed }) } handleChange = panel => (event, expanded) => {