diff --git a/ui/src/kapacitor/components/config/SlackConfig.tsx b/ui/src/kapacitor/components/config/SlackConfig.tsx index 439865b1cb..f4ac54d404 100644 --- a/ui/src/kapacitor/components/config/SlackConfig.tsx +++ b/ui/src/kapacitor/components/config/SlackConfig.tsx @@ -47,23 +47,26 @@ class SlackConfig extends PureComponent { public render() { const {url, channel, workspace} = this.props.config.options const {testEnabled, enabled} = this.state + const workspaceID = workspace || 'default' return (
- + (this.workspace = r)} - defaultValue={workspace} + defaultValue={workspace || ''} onChange={this.disableTest} />
-
- + (this.channel = r)} @@ -96,11 +101,13 @@ class SlackConfig extends PureComponent {
- +
diff --git a/ui/src/kapacitor/components/config/SlackConfigs.tsx b/ui/src/kapacitor/components/config/SlackConfigs.tsx index ddea3e5bf5..d82a30e38a 100644 --- a/ui/src/kapacitor/components/config/SlackConfigs.tsx +++ b/ui/src/kapacitor/components/config/SlackConfigs.tsx @@ -40,11 +40,12 @@ class SlackConfigs extends PureComponent { public render() { const {slackConfigs} = this.state const {onSave, onTest, enabled} = this.props + return (
- {slackConfigs.map((config, i) => ( + {slackConfigs.map(config => (