diff --git a/cmd/server/pactasrv/portfolio.go b/cmd/server/pactasrv/portfolio.go index b93f5a2..41adde6 100644 --- a/cmd/server/pactasrv/portfolio.go +++ b/cmd/server/pactasrv/portfolio.go @@ -90,6 +90,13 @@ func (s *Server) UpdatePortfolio(ctx context.Context, request api.UpdatePortfoli if request.Body.Description != nil { mutations = append(mutations, db.SetPortfolioDescription(*request.Body.Description)) } + if request.Body.PropertyHoldingsDate != nil { + hd, err := conv.HoldingsDateFromOAPI(request.Body.PropertyHoldingsDate) + if err != nil { + return nil, err + } + mutations = append(mutations, db.SetPortfolioPropertyHoldingsDate(hd)) + } if request.Body.PropertyESG != nil { mutations = append(mutations, db.SetPortfolioPropertyESG(conv.OptionalBoolFromOAPI(*request.Body.PropertyESG))) } diff --git a/frontend/components/form/FieldHeader.vue b/frontend/components/form/FieldHeader.vue index d7a2d18..5289171 100644 --- a/frontend/components/form/FieldHeader.vue +++ b/frontend/components/form/FieldHeader.vue @@ -66,7 +66,7 @@ const helpTextTextClass = computed(() => helpTextExpanded.value ? 'mb-2' : 'h-0'