Skip to content

Commit

Permalink
Update sql_lab.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lyndsiWilliams committed Aug 2, 2022
1 parent 923cc78 commit 831197f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions superset/views/sql_lab.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ def post(self) -> FlaskResponse: # pylint: disable=no-self-use
query_editor = json.loads(request.form["queryEditor"])
tab_state = TabState(
user_id=get_user_id(),
# This is for backward compatibility
label=query_editor.get("name")
or query_editor.get("title", "Untitled Query"),
active=True,
Expand Down

0 comments on commit 831197f

Please sign in to comment.