Skip to content

Commit

Permalink
Only set computedValues if value exists and is not None (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
153957 authored Oct 13, 2022
1 parent cfd2122 commit 745ad54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arango/formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def format_collection(body: Json) -> Json:
result["schema"] = body["schema"]

# New in 3.10
if "computedValues" in body:
if body.get("computedValues") is not None:
result["computedValues"] = [
{
"name": cv["name"],
Expand Down

0 comments on commit 745ad54

Please sign in to comment.