Skip to content

Commit

Permalink
🧹 allow using setprops to unsetprops (#1163)
Browse files Browse the repository at this point in the history
  • Loading branch information
vjeffrey authored Mar 11, 2024
1 parent f66a469 commit b34b124
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions policy/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ func (s *LocalServices) SetProps(ctx context.Context, req *explorer.PropsReq) (*
conf := s.NewCompilerConfig()
for i := range req.Props {
prop := req.Props[i]
// set props is used for both setting and unsetting props
if prop.Mql == "" {
continue
}
code, err := prop.RefreshChecksumAndType(conf)
if err != nil {
return nil, err
Expand Down

0 comments on commit b34b124

Please sign in to comment.