Skip to content

Commit

Permalink
fix: Unable to create transformation without env
Browse files Browse the repository at this point in the history
  • Loading branch information
alexluong committed Sep 21, 2023
1 parent 403231e commit 31292c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/provider/transformation/sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (m *transformationResourceModel) ToUpdatePayload() *hookdeck.Transformation
}

func (m *transformationResourceModel) getENV() map[string]string {
var envData map[string]string = nil
envData := map[string]string{}
if !m.ENV.IsUnknown() && !m.ENV.IsNull() {
envBytes := []byte(m.ENV.ValueString())
if err := json.Unmarshal(envBytes, &envData); err != nil {
Expand Down

0 comments on commit 31292c6

Please sign in to comment.