Преглед на файлове

feat: Fixed the issue where the test database connection was successful but the prompt message showed that there was no error status #1739 (#2051)

### 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)
tags/v0.10.0
balibabu преди 1 година
родител
ревизия
20f3f54714
No account linked to committer's email address
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1
    1
      web/src/hooks/flow-hooks.ts

+ 1
- 1
web/src/hooks/flow-hooks.ts Целия файл

@@ -201,7 +201,7 @@ export const useTestDbConnect = () => {
mutationKey: ['testDbConnect'],
mutationFn: async (params: any) => {
const ret = await flowService.testDbConnect(params);
if (ret?.retcode === 0) {
if (ret?.data?.retcode === 0) {
message.success(ret?.data?.data);
} else {
message.error(ret?.data?.data);

Loading…
Отказ
Запис