commit | 2187d1a40938ca4aff866bd15cd6e4461382acfc | [log] [tgz] |
---|---|---|
author | Shuyao Bi <shuyaob@andrew.cmu.edu> | Fri Jan 15 14:09:06 2021 -0800 |
committer | Ville Brofeldt <ville.v.brofeldt@gmail.com> | Sat Jan 16 08:12:15 2021 +0200 |
tree | 590de612f7d4d429a06b23fbb37787950962185b | |
parent | c38a5fc1d854fe565cbb6feaad6653f463655cac [diff] |
Fix 500 error when loading dashboards with slice having deleted dataset (#12535)
diff --git a/superset/models/dashboard.py b/superset/models/dashboard.py index d3a8363..d7c2a69 100644 --- a/superset/models/dashboard.py +++ b/superset/models/dashboard.py
@@ -237,6 +237,7 @@ # Filter out unneeded fields from the datasource payload datasource.uid: datasource.data_for_slices(slices) for datasource, slices in datasource_slices.items() + if datasource }, }