Skip to content

Commit

Permalink
Fix: teamId for ai filters should be in body (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
harshithmullapudi authored Oct 9, 2024
1 parent 8142b6c commit 79a4513
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion apps/webapp/src/modules/issues/filters-view/filters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export const Filters = observer(({ onClose }: FiltersProps) => {
if (value.includes('ai:')) {
setLoading(true);
aiFilterIssues({
teamId: team.id,
teamId: team?.id,
workspaceId: workspace.id,
text: value.replace('ai: ', ''),
});
Expand Down
9 changes: 3 additions & 6 deletions apps/webapp/src/services/issues/ai/ai-filter-issues.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,10 @@ export interface AIFilterIssuesParams {
workspaceId: string;
}

export function aiFilterIssues({
teamId,
...otherParams
}: AIFilterIssuesParams) {
export function aiFilterIssues(data: AIFilterIssuesParams) {
return ajaxPost({
url: `/api/v1/issues/ai/ai_filters?teamId=${teamId}`,
data: otherParams,
url: `/api/v1/issues/ai/ai_filters`,
data,
});
}

Expand Down

0 comments on commit 79a4513

Please sign in to comment.