mirror of
https://github.com/apache/superset.git
synced 2026-04-21 17:14:57 +00:00
refactor(monorepo): stage 1 (#17427)
* skip geojson in pre-commit update prettier * update package.json update package.json u package pkg pkg2 * lint main repo 2 lint main repo lint * lintrc lintrc 2 lintrc2 lintrc 3 lintrc * fix import * refresh lock file * fix break line make @ts-ignore invalid * update rat-excludes rat-excludes update rat-excludes * update eslintrc.js * lint lint lint
This commit is contained in:
@@ -410,7 +410,7 @@ const serializeExtra = (extraJson: DatabaseObject['extra_json']) =>
|
||||
...extraJson,
|
||||
metadata_params: JSON.parse((extraJson?.metadata_params as string) || '{}'),
|
||||
engine_params: JSON.parse(
|
||||
((extraJson?.engine_params as unknown) as string) || '{}',
|
||||
(extraJson?.engine_params as unknown as string) || '{}',
|
||||
),
|
||||
schemas_allowed_for_file_upload: (
|
||||
extraJson?.schemas_allowed_for_file_upload || []
|
||||
@@ -430,11 +430,8 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
|
||||
>(dbReducer, null);
|
||||
const [tabKey, setTabKey] = useState<string>(DEFAULT_TAB_KEY);
|
||||
const [availableDbs, getAvailableDbs] = useAvailableDatabases();
|
||||
const [
|
||||
validationErrors,
|
||||
getValidation,
|
||||
setValidationErrors,
|
||||
] = useDatabaseValidation();
|
||||
const [validationErrors, getValidation, setValidationErrors] =
|
||||
useDatabaseValidation();
|
||||
const [hasConnectedDb, setHasConnectedDb] = useState<boolean>(false);
|
||||
const [dbName, setDbName] = useState('');
|
||||
const [editNewDb, setEditNewDb] = useState<boolean>(false);
|
||||
|
||||
Reference in New Issue
Block a user