This is an automated email from the ASF dual-hosted git repository.

tai pushed a commit to branch nytai-patch-2
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 61a87c09bd1589639b55bfd640d5e576e5787e53
Author: ʈᵃᵢ <[email protected]>
AuthorDate: Fri Sep 29 14:18:59 2023 -0700

    fix(sqllab): error with lazy_gettext for tab titles
---
 superset/views/sql_lab/views.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset/views/sql_lab/views.py b/superset/views/sql_lab/views.py
index f07705bac3..b355117e75 100644
--- a/superset/views/sql_lab/views.py
+++ b/superset/views/sql_lab/views.py
@@ -90,7 +90,7 @@ class TabStateView(BaseSupersetView):
             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"),

Reply via email to