mirror of
https://github.com/apache/superset.git
synced 2026-06-04 07:09:22 +00:00
fix: key error in frontend on disallowed GSheets (#32792)
This commit is contained in:
@@ -319,7 +319,10 @@ def cached_common_bootstrap_data( # pylint: disable=unused-argument
|
||||
|
||||
# verify client has google sheets installed
|
||||
available_specs = get_available_engine_specs()
|
||||
frontend_config["HAS_GSHEETS_INSTALLED"] = bool(available_specs[GSheetsEngineSpec])
|
||||
frontend_config["HAS_GSHEETS_INSTALLED"] = (
|
||||
GSheetsEngineSpec in available_specs
|
||||
and bool(available_specs[GSheetsEngineSpec])
|
||||
)
|
||||
|
||||
language = locale.language if locale else "en"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user