Skip to content

Commit

Permalink
fix(sqllab): error with lazy_gettext for tab titles
Browse files Browse the repository at this point in the history
  • Loading branch information
nytai authored Sep 29, 2023
1 parent 0cebffd commit 61a87c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/views/sql_lab/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def post(self) -> FlaskResponse:
user_id=get_user_id(),
# This is for backward compatibility
label=query_editor.get("name")
or query_editor.get("title", _("Untitled Query")),
or query_editor.get("title", str(_("Untitled Query"))),
active=True,
database_id=query_editor["dbId"],
schema=query_editor.get("schema"),
Expand Down

0 comments on commit 61a87c0

Please sign in to comment.