-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: fix minor bugs #1070
fix: fix minor bugs #1070
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Risk Level 2 - /home/runner/work/quivr/quivr/backend/repository/brain_subscription/subscription_invitation_service.py The code seems to be well written and follows the SOLID principles. However, there is a minor issue with the order of operations in the if user_id is not None:
brain_user = get_brain_for_user(user_id, brain_subscription.brain_id) Change to: brain_user = get_brain_for_user(user_id, brain_subscription.brain_id) if user_id else None Risk Level 2 - /home/runner/work/quivr/quivr/frontend/app/chat/[chatId]/components/ActionsBar/components/ChatInput/components/ChatBar/components/MentionInput/hooks/helpers/getEditorText.ts The new function Risk Level 3 - /home/runner/work/quivr/quivr/frontend/app/chat/[chatId]/components/ActionsBar/components/ChatInput/components/ChatBar/components/MentionInput/hooks/useMentionInput.tsx There are several changes in this file, including the addition of new state variables and changes to the 📝🐛🚀 Powered by Code Review GPT |
1edd111
to
3574e81
Compare
let content = editorState.getCurrentContent().getPlainText(); | ||
|
||
for (const mention of mentions) { | ||
content = content.replace(`@#${mention}`, ""); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tiny risk of collision here :/
* fix: update get_user_id_by_user_email type * fix: update getEditorText logic * feat(mentionSuggestions): render empty popover
Fixed:
Improvement: