Skip to content

Commit

Permalink
fix: don't display other conversation errors in debug settings
Browse files Browse the repository at this point in the history
  • Loading branch information
mikbry authored Mar 11, 2024
2 parents 4473f1b + ae9f875 commit 99c7c6f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion webapp/components/views/Threads/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export default function Settings({
<div key={error.id} className="p-2 text-xs text-red-500">
<p>
<AlertTriangle className="mr-2 inline-flex h-4 w-4 text-red-500" />
<span>{error.error}</span>
<span>{error.message}</span>
</p>
</div>
))}
Expand Down
2 changes: 1 addition & 1 deletion webapp/components/views/Threads/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default function Threads({ selectedThreadId, view = ViewName.Recent }: Th
const { id } = router.query;
const [errors, setError] = useState<ConversationError[]>([]);
const handleError = (conversationId: string, error: string) => {
setError([...errors, { id: uuid(), conversationId, error }]);
setError([...errors, { id: uuid(), conversationId, message: error }]);
};

const {
Expand Down
2 changes: 1 addition & 1 deletion webapp/types/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,5 @@ export enum ModalIds {
export type ConversationError = {
id: string;
conversationId: string;
error: string;
message: string;
};

0 comments on commit 99c7c6f

Please sign in to comment.