Issue on creating new task through UI
- Dominant language
- TypeScript
- Stars
- 117
- Forks
- 51
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 4
Description
## About the bug
**Steps to reproduce:**
List the minimal actions needed to reproduce the behavior.
1. Create a new task through UI something like this -
```import "influxdata/influxdb/monitor"
import "slack"
import "influxdata/influxdb/secrets"
import "array"
option task = {name: "No Task", every: 1m, offset: 2s}
slack_endpoint = slack["endpoint"](url: "https://hooks.slack.com/services/Txxxxxxxxx")
notification = {
_notification_rule_id: "08762fc8a72f2000",
_notification_rule_name: "My Test Rule",
_notification_endpoint_id: "07fd2b39e56ee000",
_notification_endpoint_name: "Slack Service",
}
from(bucket: "TEST_DB")
|> range(start: -1h)
|> filter(fn: (r) => r["_measurement"] == "myMeasurement")
|> filter(fn: (r) => r["_field"] == "testField")
|> aggregateWindow(every: 1m, fn: count, createEmpty: false)
|> filter(fn: (r) => r["_value"] > 3)
|> monitor["notify"](data: notification, endpoint: slack_endpoint(mapFn: (r) =>
({channel: "", text: "Count is getting higher...", color: "danger"})))
```
2. Save it.
**Expected behavior:**
Should have been saved
**Actual behavior:**
Raised an error and the whole popup getting closed and have to write whole code again.
**Visual Proof:**


## About your environment
**Environment info:**
InfluxDB2.0 (Docker Version)
**Config:**
NA
**Logs:**
NA
**Performance:**
NA
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.