Skip to content

Commit

Permalink
fix(knowledge): if the chat is an integration use the project from th…
Browse files Browse the repository at this point in the history
…e integration data.
  • Loading branch information
MarcMcIntosh committed Jan 27, 2025
1 parent e4660ad commit f741ef7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/features/Chat/currentProject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,8 @@ export const currentProjectInfoReducer = createReducer(
);

export const selectThreadProjectOrCurrentProject = (state: RootState) => {
if (state.chat.thread.integration?.project) {
return state.chat.thread.integration.project;
}
return state.chat.thread.project_name ?? state.current_project.name;
};

0 comments on commit f741ef7

Please sign in to comment.