mirror of
https://github.com/apache/superset.git
synced 2024-09-16 02:29:39 -04:00
Fix test_connection POST body (#10846)
This commit is contained in:
parent
6cb67017a5
commit
686c19abcf
@ -157,7 +157,8 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
|
||||
|
||||
SupersetClient.post({
|
||||
endpoint: 'api/v1/database/test_connection',
|
||||
postPayload: JSON.stringify(connection),
|
||||
body: JSON.stringify(connection),
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
})
|
||||
.then(() => {
|
||||
addSuccessToast(t('Connection looks good!'));
|
||||
|
Loading…
Reference in New Issue
Block a user