Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rrequero committed Nov 20, 2023
1 parent 6d9f742 commit 0cc1916
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gfw/resource_dataset.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"encoding/json"
"time"

"github.com/docker/distribution/configuration"
"github.com/globalfishingwatch.org/terraform-provider-gfw/gfw/api"
"github.com/globalfishingwatch.org/terraform-provider-gfw/gfw/utils"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
Expand Down Expand Up @@ -849,8 +848,8 @@ func flattenDatasetConfiguration(config api.DatasetConfiguration) interface{} {
a["value_properties"] = config.ValueProperties
a["id_property"] = config.IDProperty

if configuration.ConfigurationUI != nil {
jsonStr, err := json.Marshal(configuration.ConfigurationUI)
if config.ConfigurationUI != nil {
jsonStr, err := json.Marshal(config.ConfigurationUI)
if err != nil {
return diag.FromErr(err)
}
Expand Down

0 comments on commit 0cc1916

Please sign in to comment.