forked from lobehub/lobe-chat
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 fix: feature flag
knowledge_base
doesn't affect ActionBar (lobehu…
…b#3609) * 🐛 fix: Feature flag `knoeledge_base` doesn't affect ActionBar * 🐛 fix: Feature flag `knoeledge_base` doesn't affect ActionBar
- Loading branch information
1 parent
d1d0350
commit 1a5286b
Showing
2 changed files
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
import { isServerMode } from '@/const/version'; | ||
import { featureFlagsSelectors, useServerConfigStore } from '@/store/serverConfig'; | ||
|
||
import ClientMode from './ClientMode'; | ||
import ServerMode from './ServerMode'; | ||
|
||
const Upload = isServerMode ? ServerMode : ClientMode; | ||
const Upload = () => { | ||
const { enableKnowledgeBase } = useServerConfigStore(featureFlagsSelectors); | ||
return isServerMode && enableKnowledgeBase ? <ServerMode /> : <ClientMode />; | ||
}; | ||
|
||
export default Upload; |