diff --git a/port/action/refreshActionState.go b/port/action/refreshActionState.go index 785b6250..0c23e54a 100644 --- a/port/action/refreshActionState.go +++ b/port/action/refreshActionState.go @@ -306,7 +306,9 @@ func buildUserProperties(ctx context.Context, a *cli.Action) (*UserPropertiesMod } } } - + if properties.StringProps == nil && properties.NumberProps == nil && properties.ArrayProps == nil && properties.BooleanProps == nil && properties.ObjectProps == nil { + return nil, nil + } return properties, nil } diff --git a/port/action/schema.go b/port/action/schema.go index 0a158050..9f1f77f1 100644 --- a/port/action/schema.go +++ b/port/action/schema.go @@ -109,7 +109,6 @@ func ActionSchema() map[string]schema.Attribute { "user_properties": schema.SingleNestedAttribute{ MarkdownDescription: "User properties", Optional: true, - Computed: true, Attributes: map[string]schema.Attribute{ "string_props": StringPropertySchema(), "number_props": NumberPropertySchema(), @@ -1021,6 +1020,7 @@ func validateUserInputRequiredNotSetToFalse(ctx context.Context, state *ActionVa } } } + } var ResourceMarkdownDescription = `