mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-14 10:06:11 +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,
|
initialData: {} as IFlow,
|
||||||
refetchOnReconnect: false,
|
refetchOnReconnect: false,
|
||||||
refetchOnMount: false,
|
refetchOnMount: false,
|
||||||
|
refetchOnWindowFocus: false,
|
||||||
queryFn: async () => {
|
queryFn: async () => {
|
||||||
const { data } = await flowService.getCanvas({}, id);
|
const { data } = await flowService.getCanvas({}, id);
|
||||||
|
|
||||||
|
@ -374,12 +374,12 @@ export const useSaveGraphBeforeOpeningDebugDrawer = (show: () => void) => {
|
|||||||
const resetRet = await resetFlow();
|
const resetRet = await resetFlow();
|
||||||
// After resetting, all previous messages will be cleared.
|
// After resetting, all previous messages will be cleared.
|
||||||
if (resetRet?.retcode === 0) {
|
if (resetRet?.retcode === 0) {
|
||||||
refetch();
|
|
||||||
// fetch prologue
|
// fetch prologue
|
||||||
const sendRet = await send({ id });
|
const sendRet = await send({ id });
|
||||||
if (receiveMessageError(sendRet)) {
|
if (receiveMessageError(sendRet)) {
|
||||||
message.error(sendRet?.data?.retmsg);
|
message.error(sendRet?.data?.retmsg);
|
||||||
} else {
|
} else {
|
||||||
|
refetch();
|
||||||
show();
|
show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user