Skip to content

Commit

Permalink
fix: fixed the issue where the greeting message could not be displaye…
Browse files Browse the repository at this point in the history
…d when opening the debug window #918 (#1499)

### What problem does this PR solve?

fix: fixed the issue where the greeting message could not be displayed
when opening the debug window #918

### Type of change

- [ ] Bug Fix (non-breaking change which fixes an issue)
  • Loading branch information
cike8899 authored Jul 12, 2024
1 parent 38a90c3 commit d9868d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions web/src/hooks/flow-hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export const useFetchFlow = (): {
initialData: {} as IFlow,
refetchOnReconnect: false,
refetchOnMount: false,
refetchOnWindowFocus: false,
queryFn: async () => {
const { data } = await flowService.getCanvas({}, id);

Expand Down
2 changes: 1 addition & 1 deletion web/src/pages/flow/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -374,12 +374,12 @@ export const useSaveGraphBeforeOpeningDebugDrawer = (show: () => void) => {
const resetRet = await resetFlow();
// After resetting, all previous messages will be cleared.
if (resetRet?.retcode === 0) {
refetch();
// fetch prologue
const sendRet = await send({ id });
if (receiveMessageError(sendRet)) {
message.error(sendRet?.data?.retmsg);
} else {
refetch();
show();
}
}
Expand Down

0 comments on commit d9868d0

Please sign in to comment.