Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: close child modal on log drawer close (#10839)

kimjion72613846551e
diff --git a/web/app/components/app/log/list.tsx b/web/app/components/app/log/list.tsx
index 4c12cab5814..9a8cca43782 100644
--- a/web/app/components/app/log/list.tsx
+++ b/web/app/components/app/log/list.tsx
@@ -676,6 +676,10 @@ const ConversationList: FC<IConversationList> = ({ logs, appDetail, onRefresh })
const [showDrawer, setShowDrawer] = useState<boolean>(false) // Whether to display the chat details drawer
const [currentConversation, setCurrentConversation] = useState<ChatConversationGeneralDetail | CompletionConversationGeneralDetail | undefined>() // Currently selected conversation
const isChatMode = appDetail.mode !== 'completion' // Whether the app is a chat app
+ const { setShowPromptLogModal, setShowAgentLogModal } = useAppStore(useShallow(state => ({
+ setShowPromptLogModal: state.setShowPromptLogModal,
+ setShowAgentLogModal: state.setShowAgentLogModal,
+ })))
// Annotated data needs to be highlighted
const renderTdValue = (value: string | number | null, isEmptyStyle: boolean, isHighlight = false, annotation?: LogAnnotation) => {
@@ -699,6 +703,8 @@ const ConversationList: FC<IConversationList> = ({ logs, appDetail, onRefresh })
onRefresh()
setShowDrawer(false)
setCurrentConversation(undefined)
+ setShowPromptLogModal(false)
+ setShowAgentLogModal(false)
}
if (!logs)