Fix 500 error when loading dashboards with slice having deleted dataset (#12535)

This commit is contained in:
Shuyao Bi 2021-01-15 14:09:06 -08:00 committed by Ville Brofeldt
parent c38a5fc1d8
commit 2187d1a409
No known key found for this signature in database
GPG Key ID: 7E7B51D2816B1A16
1 changed files with 1 additions and 0 deletions

View File

@ -237,6 +237,7 @@ class Dashboard( # pylint: disable=too-many-instance-attributes
# Filter out unneeded fields from the datasource payload
datasource.uid: datasource.data_for_slices(slices)
for datasource, slices in datasource_slices.items()
if datasource
},
}