Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
pablonyx committed Dec 16, 2024
1 parent 59da90b commit ec8487b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions backend/onyx/server/query_and_chat/chat_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,6 @@ def delete_all_chat_sessions(
except ValueError as e:
raise HTTPException(status_code=400, detail=str(e))

return None


@router.delete("/delete-chat-session/{session_id}")
def delete_chat_session_by_id(
Expand Down
4 changes: 1 addition & 3 deletions web/src/app/chat/sessionSidebar/PagesTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,7 @@ export function PagesTab({
<div className="absolute w-full border-t border-t-border bg-background-100 bottom-0 left-0 p-4">
<button
className="w-full py-2 px-4 text-text-600 hover:text-text-800 bg-background-125 border border-border-strong/50 shadow-sm rounded-md transition-colors duration-200 flex items-center justify-center text-sm"
onClick={() => {
showDeleteAllModal();
}}
onClick={showDeleteAllModal}
>
<FiTrash2 className="mr-2" size={14} />
Clear All History
Expand Down

0 comments on commit ec8487b

Please sign in to comment.