Skip to content

Commit

Permalink
Fix tab state
Browse files Browse the repository at this point in the history
  • Loading branch information
lyndsiWilliams committed Aug 2, 2022
1 parent bfd2a3d commit 923cc78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion superset/views/sql_lab.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ def post(self) -> FlaskResponse: # pylint: disable=no-self-use
query_editor = json.loads(request.form["queryEditor"])
tab_state = TabState(
user_id=get_user_id(),
label=query_editor.get("title", "Untitled Query"),
label=query_editor.get("name")
or query_editor.get("title", "Untitled Query"),
active=True,
database_id=query_editor["dbId"],
schema=query_editor.get("schema"),
Expand Down

0 comments on commit 923cc78

Please sign in to comment.