Skip to content

Commit

Permalink
🐛 fix: slove local inner
Browse files Browse the repository at this point in the history
  • Loading branch information
ONLY-yours committed Apr 29, 2024
1 parent a7cc186 commit 8b9f694
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ProChat/components/ChatList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const List = memo<ListProps>(
({ showTitle, itemShouldUpdate, chatItemRenderConfig, renderErrorMessages, markdownProps }) => {
const data = useStore(chatSelectors.currentChatsWithGuideMessage, isEqual);
const { localeObject: localeObj } = useProChatLocale();

const locale = useStore((s) => s.locale);
const [
init,
displayMode,
Expand Down Expand Up @@ -80,7 +80,7 @@ const List = memo<ListProps>(
history: localeObj.history,
regenerate: localeObj.regenerate,
};
}, []);
}, [locale]);
if (!init) return <SkeletonList />;

return (
Expand Down

0 comments on commit 8b9f694

Please sign in to comment.