Skip to content

Commit 12ed995

Browse files
committed
fix(dashboard): Fix the issue where the predicted data cannot be displayed on the data dashboard
1 parent 3c41414 commit 12ed995

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/apps/dashboard/crud/dashboard_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def load_resource(session: SessionDep, dashboard: QueryDashboard):
5050
result_dict = dict(result)
5151
canvas_view_obj = orjson.loads(result_dict['canvas_view_info'])
5252
for item in canvas_view_obj.values():
53-
if all(key in item for key in ['datasource', 'sql']) and item['datasource'] is not None:
53+
if all(key in item for key in ['datasource', 'sql']) and item['datasource'] is not None and item['sql'] is not None:
5454
data_result = get_chart_data_ds(session, item['datasource'], item['sql'])
5555
item['data']['data'] = data_result['data']
5656
item['status'] = data_result['status']

0 commit comments

Comments
 (0)