diff --git a/src/api/useGetArchive.tsx b/src/api/useGetArchive.tsx index 9421374..3f3efd4 100644 --- a/src/api/useGetArchive.tsx +++ b/src/api/useGetArchive.tsx @@ -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) @@ -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 diff --git a/src/components/Meeting/MeetingAdditionalInput.tsx b/src/components/Meeting/MeetingAdditionalInput.tsx index 48cf317..cb3fb7c 100644 --- a/src/components/Meeting/MeetingAdditionalInput.tsx +++ b/src/components/Meeting/MeetingAdditionalInput.tsx @@ -34,12 +34,7 @@ export function MeetingAdditionalInput({ themes={context.themes} administrations={context.administrations} /> - + ) })} diff --git a/src/components/Meeting/MeetingOutputs.tsx b/src/components/Meeting/MeetingOutputs.tsx index b539cd0..29f22cc 100644 --- a/src/components/Meeting/MeetingOutputs.tsx +++ b/src/components/Meeting/MeetingOutputs.tsx @@ -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]) diff --git a/src/components/Meeting/MeetingQuestionInput.tsx b/src/components/Meeting/MeetingQuestionInput.tsx index 19d40d6..e6c42b9 100644 --- a/src/components/Meeting/MeetingQuestionInput.tsx +++ b/src/components/Meeting/MeetingQuestionInput.tsx @@ -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), })