mirror of https://github.com/apache/superset.git
Fix 500 error when loading dashboards with slice having deleted dataset (#12535)
This commit is contained in:
parent
39c6ef2c75
commit
b50fd3eab0
|
@ -237,6 +237,7 @@ class Dashboard( # pylint: disable=too-many-instance-attributes
|
||||||
# Filter out unneeded fields from the datasource payload
|
# Filter out unneeded fields from the datasource payload
|
||||||
datasource.uid: datasource.data_for_slices(slices)
|
datasource.uid: datasource.data_for_slices(slices)
|
||||||
for datasource, slices in datasource_slices.items()
|
for datasource, slices in datasource_slices.items()
|
||||||
|
if datasource
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue