Fix test_connection POST body (#10846)

This commit is contained in:
Moriah Kreeger 2020-09-11 23:33:43 -07:00 committed by GitHub
parent 6cb67017a5
commit 686c19abcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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!'));