diff --git a/internal/common/cluster_bindings.go b/internal/common/cluster_bindings.go index e29fb30..ceac7f1 100644 --- a/internal/common/cluster_bindings.go +++ b/internal/common/cluster_bindings.go @@ -61,7 +61,7 @@ func (cb *ClusterBindings) From(readBindings []*console.PolicyBindingFragment, w } func clusterBindingsFrom(bindings []*console.PolicyBindingFragment, ctx context.Context, d diag.Diagnostics) types.Set { - if len(bindings) == 0 { + if bindings == nil { return types.SetNull(basetypes.ObjectType{AttrTypes: ClusterPolicyBindingAttrTypes}) }