mirror of
https://github.com/openziti/ziti.git
synced 2026-10-14 08:10:17 +00:00
Merge pull request #828 from openziti/fix-panic-on-session-view
Fix panic on session view
This commit is contained in:
@@ -117,7 +117,7 @@ func MapSessionToRestModel(ae *env.AppEnv, sessionModel *model.Session) (*rest_m
|
||||
servicePolicyRefs := []*rest_model.EntityRef{} //send `[]` not `null`
|
||||
|
||||
for _, servicePolicyId := range sessionModel.ServicePolicies {
|
||||
if policy, err := ae.GetHandlers().ServicePolicy.Read(servicePolicyId); err != nil {
|
||||
if policy, _ := ae.GetHandlers().ServicePolicy.Read(servicePolicyId); policy != nil {
|
||||
ref := &rest_model.EntityRef{
|
||||
Links: ServicePolicyLinkFactory.Links(policy),
|
||||
Entity: EntityNameServicePolicy,
|
||||
|
||||
Reference in New Issue
Block a user