From 328571e11b01cc2969b0ddb6ffd825cae0e8c478 Mon Sep 17 00:00:00 2001 From: CorentinPtrl Date: Sat, 25 Jan 2025 14:51:12 +0100 Subject: [PATCH] fix(node_link): incorrect read when no style --- internal/provider/node_link_resource.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/provider/node_link_resource.go b/internal/provider/node_link_resource.go index 6b6f819..5c275ee 100755 --- a/internal/provider/node_link_resource.go +++ b/internal/provider/node_link_resource.go @@ -262,7 +262,7 @@ func (r *nodeLinkResource) Create(ctx context.Context, req resource.CreateReques return } - if r.client.IsPro() { + if r.client.IsPro() && plan.Style != nil { r.MakeNodeStyle(ctx, plan) rstyle := r.NewStyleModel(ctx, plan) plan.Style = &rstyle