Skip to content

Commit

Permalink
🐛 fix: fix loading on not login for db (lobehub#6258)
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx authored Feb 17, 2025
1 parent 1fc7ca6 commit 61692b9
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import PluginTag from '@/features/PluginTag';
import { useModelSupportToolUse } from '@/hooks/useModelSupportToolUse';
import { useAgentStore } from '@/store/agent';
import { agentSelectors } from '@/store/agent/selectors';
import { useUserStore } from '@/store/user';
import { authSelectors } from '@/store/user/selectors';

import KnowledgeTag from './KnowledgeTag';

Expand All @@ -23,8 +25,9 @@ const TitleTags = memo(() => {

const showPlugin = useModelSupportToolUse(model, provider);
const isLoading = useAgentStore(agentSelectors.isAgentConfigLoading);
const isLogin = useUserStore(authSelectors.isLogin);

return isLoading ? (
return isLoading && isLogin ? (
<Skeleton.Button active size={'small'} style={{ height: 20 }} />
) : (
<Flexbox align={'center'} horizontal>
Expand Down

0 comments on commit 61692b9

Please sign in to comment.