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.
1 parent cf9ddc2 commit 928ac91Copy full SHA for 928ac91
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