mirror of
https://github.com/apache/superset.git
synced 2024-09-17 11:09:47 -04:00
[hotfix] dashboard fails when a slice is missing its datasource
This commit is contained in:
parent
10773f96a7
commit
b7f46ebe75
@ -1620,7 +1620,7 @@ class Superset(BaseSupersetView):
|
||||
dash = qry.one()
|
||||
datasources = {slc.datasource for slc in dash.slices}
|
||||
for datasource in datasources:
|
||||
if not self.datasource_access(datasource):
|
||||
if datasource and not self.datasource_access(datasource):
|
||||
flash(
|
||||
__(get_datasource_access_error_msg(datasource.name)),
|
||||
"danger")
|
||||
|
Loading…
Reference in New Issue
Block a user