Skip to content

Commit

Permalink
fix(client): add default value to is_default field which is not requi…
Browse files Browse the repository at this point in the history
…red in controller api (#1597)

add default value to is_default field which is not required in controller api
  • Loading branch information
dreamlandliu authored Dec 9, 2022
1 parent aa44ee8 commit 1f67118
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/starwhale/core/project/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def list(
id=_p["id"],
name=_p["name"],
created_at=crm.fmt_timestamp(_p["createdTime"]), # type: ignore
is_default=_p["isDefault"],
is_default=_p.get("isDefault", 0),
owner=owner,
)
)
Expand Down

0 comments on commit 1f67118

Please sign in to comment.