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: modal disappear (#478)

crazywoolaa87f6f2837d1
diff --git a/web/app/components/app/overview/settings/index.tsx b/web/app/components/app/overview/settings/index.tsx
index 155aef80067..128a820d998 100644
--- a/web/app/components/app/overview/settings/index.tsx
+++ b/web/app/components/app/overview/settings/index.tsx
@@ -83,17 +83,6 @@ const SettingsModal: FC<ISettingsModalProps> = ({
return (
<>
- {showEmojiPicker && <EmojiPicker
- onSelect={(icon, icon_background) => {
- console.log(icon, icon_background)
- setEmoji({ icon, icon_background })
- setShowEmojiPicker(false)
- }}
- onClose={() => {
- setEmoji({ icon: '🤖', icon_background: '#FFEAD5' })
- setShowEmojiPicker(false)
- }}
- />}
<Modal
title={t(`${prefixSettings}.title`)}
isShow={isShow}
@@ -161,6 +150,17 @@ const SettingsModal: FC<ISettingsModalProps> = ({
<Button className='mr-2 flex-shrink-0' onClick={onHide}>{t('common.operation.cancel')}</Button>
<Button type='primary' className='flex-shrink-0' onClick={onClickSave} loading={saveLoading}>{t('common.operation.save')}</Button>
</div>
+ {showEmojiPicker && <EmojiPicker
+ onSelect={(icon, icon_background) => {
+ console.log(icon, icon_background)
+ setEmoji({ icon, icon_background })
+ setShowEmojiPicker(false)
+ }}
+ onClose={() => {
+ setEmoji({ icon: '🤖', icon_background: '#FFEAD5' })
+ setShowEmojiPicker(false)
+ }}
+ />}
</Modal >
</>