diff --git a/project-fortis-interfaces/src/components/Admin/Admin.js b/project-fortis-interfaces/src/components/Admin/Admin.js index 55b478a8..80a51aea 100644 --- a/project-fortis-interfaces/src/components/Admin/Admin.js +++ b/project-fortis-interfaces/src/components/Admin/Admin.js @@ -64,6 +64,9 @@ class Admin extends React.Component { } render() { + const { index, showModal } = this.state; + const { settings, watchlist } = this.props; + return (
@@ -73,7 +76,7 @@ class Admin extends React.Component {
+ selectedIndex={index}> Site Settings Watchlist @@ -85,22 +88,22 @@ class Admin extends React.Component {

Settings

- { this.props.settings && this.props.settings.properties && this.state.index === SETTINGS_TAB && + { settings && settings.properties && index === SETTINGS_TAB && }

Watchlist

- {this.props.settings && this.props.settings.properties && this.props.watchlist && this.state.index === WATCHLIST_TAB && + {settings && settings.properties && watchlist && index === WATCHLIST_TAB && }

Users

- { this.props.settings && this.props.settings.properties && this.state.index === USERS_TAB && + { settings && settings.properties && index === USERS_TAB &&
@@ -109,14 +112,14 @@ class Admin extends React.Component {

Event Import

- {this.props.settings && this.props.settings.properties && this.state.index === CUSTOM_EVENTS_TAB && + {settings && settings.properties && index === CUSTOM_EVENTS_TAB && }

Trusted Sources

- {this.props.settings && this.props.settings.properties && this.state.index === TRUSTED_SOURCES && + {settings && settings.properties && index === TRUSTED_SOURCES &&
} @@ -128,13 +131,13 @@ class Admin extends React.Component { Provide a comma delimited list of blacklist terms, i.e. hunger, flood, hurricane. If an event matches all the blacklist terms, then it will be discarded.
- {this.props.settings && this.props.settings.properties && this.state.index === BLACKLIST_TAB && + {settings && settings.properties && index === BLACKLIST_TAB && }
- {this.props.settings && this.props.settings.properties && this.state.index === STREAM_TAB && + {settings && settings.properties && index === STREAM_TAB && }
@@ -147,7 +150,7 @@ class Admin extends React.Component {
- + Are you sure you want to restart the pipeline?