balibabu
commited on
Commit
·
f3bf833
1
Parent(s):
0842c1e
feat: Fixed the issue where the test database connection was successful but the prompt message showed that there was no error status #1739 (#2051)
Browse files### What problem does this PR solve?
feat: Fixed the issue where the test database connection was successful
but the prompt message showed that there was no error status #1739
### Type of change
- [x] New Feature (non-breaking change which adds functionality)
web/src/hooks/flow-hooks.ts
CHANGED
@@ -201,7 +201,7 @@ export const useTestDbConnect = () => {
|
|
201 |
mutationKey: ['testDbConnect'],
|
202 |
mutationFn: async (params: any) => {
|
203 |
const ret = await flowService.testDbConnect(params);
|
204 |
-
if (ret?.retcode === 0) {
|
205 |
message.success(ret?.data?.data);
|
206 |
} else {
|
207 |
message.error(ret?.data?.data);
|
|
|
201 |
mutationKey: ['testDbConnect'],
|
202 |
mutationFn: async (params: any) => {
|
203 |
const ret = await flowService.testDbConnect(params);
|
204 |
+
if (ret?.data?.retcode === 0) {
|
205 |
message.success(ret?.data?.data);
|
206 |
} else {
|
207 |
message.error(ret?.data?.data);
|