Skip to content

Commit

Permalink
Fix exporting text-only widgets (databricks#1278)
Browse files Browse the repository at this point in the history
  • Loading branch information
nfx authored Apr 28, 2022
1 parent 6ea064d commit 83e7836
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion exporter/importables.go
Original file line number Diff line number Diff line change
Expand Up @@ -1117,7 +1117,9 @@ var resourcesMap map[string]importable = map[string]importable{
Resource: "databricks_sql_widget",
ID: dashboardID + "/" + widget.ID.String(),
})
visualizations[widget.VisualizationID.String()] = struct{}{}
if widget.VisualizationID != nil {
visualizations[widget.VisualizationID.String()] = struct{}{}
}
log.Printf("[DEBUG] Emitted %d widgets for %d of %d dashboards", cnt, i+1, len(dashboardList))
cnt++
}
Expand Down

0 comments on commit 83e7836

Please sign in to comment.