We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cf9ddc2 + 928ac91 commit 3156c60Copy full SHA for 3156c60
sumologic/resource_sumologic_dashboard.go
@@ -767,8 +767,8 @@ func getSumoSearchPanel(tfSearchPanel map[string]interface{}) interface{} {
767
if description, ok := tfSearchPanel["description"].(string); ok {
768
searchPanel.Description = description
769
}
770
- if val, ok := tfSearchPanel["time_range"]; ok {
771
- tfTimeRange := val.([]interface{})[0]
+ if val := tfSearchPanel["time_range"].([]interface{}); len(val) == 1 {
+ tfTimeRange := val[0]
772
searchPanel.TimeRange = getTimeRange(tfTimeRange.(map[string]interface{}))
773
774
0 commit comments