Skip to content

Commit

Permalink
fix: wrong name for operators field
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeSlain committed Nov 26, 2024
1 parent 8c10632 commit 2b68a8c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/api/useGetArchive.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const fetchArchive = async (chatId: number) => {
query: stream.query,
chunks: chunksResponse,
response: stream.response,
operator: responseData.operator,
operators: responseData.operators,
themes: responseData.themes,
webservices: chunksResponse[0]?.web_services
? chunksResponse[0]?.web_services.slice(0, 3)
Expand All @@ -46,7 +46,7 @@ const fetchArchive = async (chatId: number) => {

type ArchiveType = {
chat_type: string
operator: string
operators: string
themes: string[]
id: number
created_at: string
Expand Down
7 changes: 1 addition & 6 deletions src/components/Meeting/MeetingAdditionalInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,7 @@ export function MeetingAdditionalInput({
themes={context.themes}
administrations={context.administrations}
/>
<MeetingTags
setContext={setContext}
context={context}
field={field}
tags={tags}
/>
<MeetingTags setContext={setContext} field={field} tags={tags} />
</div>
)
})}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Meeting/MeetingOutputs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const MeetingOutputs = memo(function MeetingOutputs({
}
setContext({
themes: archiveData[0].themes,
administrations: [archiveData[0]?.operator],
administrations: [archiveData[0]?.operators],
})
}
}, [chatId, archiveData, dispatch])
Expand Down
2 changes: 1 addition & 1 deletion src/components/Meeting/MeetingQuestionInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export function MeetingQuestionInput({
data: JSON.stringify({
chat_type: 'meeting',
themes: context.themes,
operator: context.administrations[0],
operators: context.administrations,
}),
headers: setHeaders(false),
})
Expand Down

0 comments on commit 2b68a8c

Please sign in to comment.