mirror of
https://github.com/apache/superset.git
synced 2026-04-21 00:54:44 +00:00
fix: dashboard datasources filter None (#14471)
This commit is contained in:
@@ -290,7 +290,7 @@ def get_time_range_endpoints(
|
||||
if not slc:
|
||||
slc = db.session.query(Slice).filter_by(id=slice_id).one_or_none()
|
||||
|
||||
if slc:
|
||||
if slc and slc.datasource:
|
||||
endpoints = slc.datasource.database.get_extra().get(
|
||||
"time_range_endpoints"
|
||||
)
|
||||
@@ -533,7 +533,7 @@ def check_slice_perms(_self: Any, slice_id: int) -> None:
|
||||
|
||||
form_data, slc = get_form_data(slice_id, use_slice_data=True)
|
||||
|
||||
if slc:
|
||||
if slc and slc.datasource:
|
||||
try:
|
||||
viz_obj = get_viz(
|
||||
datasource_type=slc.datasource.type,
|
||||
|
||||
Reference in New Issue
Block a user