Skip to content

Commit

Permalink
parameters may not have a default value set
Browse files Browse the repository at this point in the history
  • Loading branch information
Rémi Laurent committed Oct 30, 2023
1 parent 728227c commit 76534eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion redash/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,8 @@ def default_parameters_query_text(self):

@property
def parameters_dict(self):
return {p["name"]: p.get("value") for p in self.parameters}
# ignore the parameter if no default value is set
return {p["name"]: p.get("value") for p in self.parameters if p.get("value")}

@property
def parameterized(self):
Expand Down

0 comments on commit 76534eb

Please sign in to comment.