mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-12 21:49:00 +08:00
fix: fixed the issue where the greeting message could not be displayed 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)
This commit is contained in:
parent
38a90c32b2
commit
d9868d0229
@ -95,6 +95,7 @@ export const useFetchFlow = (): {
|
||||
initialData: {} as IFlow,
|
||||
refetchOnReconnect: false,
|
||||
refetchOnMount: false,
|
||||
refetchOnWindowFocus: false,
|
||||
queryFn: async () => {
|
||||
const { data } = await flowService.getCanvas({}, id);
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user