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 GitHub
parent 39c6ef2c75
commit b50fd3eab0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
},
}