Skip to content

Commit

Permalink
[Obs ai assistant] - bug bulk import for knowledge base
Browse files Browse the repository at this point in the history
  • Loading branch information
arturoliduena committed Dec 23, 2024
1 parent 4fa7b78 commit b3be6ed
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export function KnowledgeBaseBulkImportFlyout({ onClose }: { onClose: () => void

try {
entries = elements.map((el) => JSON.parse(el));
mutateAsync({ entries }).then(onClose);
} catch (_) {
toasts.addError(
new Error(
Expand All @@ -73,9 +74,8 @@ export function KnowledgeBaseBulkImportFlyout({ onClose }: { onClose: () => void
),
}
);
onClose();
}

mutateAsync({ entries }).then(onClose);
};

return (
Expand Down

0 comments on commit b3be6ed

Please sign in to comment.