Skip to content

Commit

Permalink
fix: js is expecting arrays for schema and columns (#2757)
Browse files Browse the repository at this point in the history
  • Loading branch information
niross authored Sep 4, 2023
1 parent 2e27c0b commit aa94c85
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions dataworkspace/dataworkspace/apps/explorer/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,8 @@ def get(self, request):

# schema, tables_columns = get_user_schema_info(request)
# schema = match_datasets_with_schema_info(schema)
schema = None
tables_columns = None
schema = []
tables_columns = []
return render(
self.request,
"explorer/home.html",
Expand Down Expand Up @@ -352,9 +352,9 @@ def render_with_sql(
page=page,
form=form,
)
schema, tables_columns = get_user_schema_info(request)
context["schema"] = schema
context["schema_tables"] = tables_columns
# schema, tables_columns = get_user_schema_info(request)
context["schema"] = []
context["schema_tables"] = []
context["form_action"] = self.get_form_action(request)

if download_failed and request.method == "GET":
Expand Down

0 comments on commit aa94c85

Please sign in to comment.