Fix send to zulip

This commit is contained in:
2024-07-18 15:10:13 +02:00
parent 334b68d3c5
commit 2b7600942a
4 changed files with 24 additions and 3 deletions

View File

@@ -23,6 +23,7 @@ import ShareAndPrivacy from "../shareAndPrivacy";
type FinalSummaryProps = {
transcriptResponse: GetTranscript;
topicsResponse: GetTranscriptTopic[];
onUpdate?: (newSummary) => void;
};
export default function FinalSummary(props: FinalSummaryProps) {
@@ -53,6 +54,9 @@ export default function FinalSummary(props: FinalSummaryProps) {
transcriptId,
requestBody,
});
if (props.onUpdate) {
props.onUpdate(newSummary);
}
console.log("Updated long summary:", updatedTranscript);
} catch (err) {
console.error("Failed to update long summary:", err);