mirror of
https://github.com/apache/superset.git
synced 2024-09-06 22:07:34 -04:00
fix: isDynamic function (#16175)
* fix: isDynamic function * trigger tests
This commit is contained in:
parent
a3102488a1
commit
9f52c103ac
@ -489,9 +489,9 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
|
||||
addDangerToast,
|
||||
);
|
||||
const isDynamic = (engine: string | undefined) =>
|
||||
availableDbs?.databases.filter(
|
||||
availableDbs?.databases?.find(
|
||||
(DB: DatabaseObject) => DB.backend === engine || DB.engine === engine,
|
||||
)[0].parameters !== undefined;
|
||||
)?.parameters !== undefined;
|
||||
const showDBError = validationErrors || dbErrors;
|
||||
const isEmpty = (data?: Object | null) =>
|
||||
data && Object.keys(data).length === 0;
|
||||
|
Loading…
Reference in New Issue
Block a user