Skip to content

Commit

Permalink
Merge pull request #491 from daniel-shuy/bugfix/about-page-to-convers…
Browse files Browse the repository at this point in the history
…ation-navigation

Fix About page to Conversation navigation
  • Loading branch information
dartpain authored Oct 7, 2023
2 parents 39e8ba4 + b983095 commit af9b4e4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/Navigation.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useEffect, useRef, useState } from 'react';
import { NavLink } from 'react-router-dom';
import { NavLink, useNavigate } from 'react-router-dom';
import Arrow1 from './assets/arrow.svg';
import Arrow2 from './assets/dropdown-arrow.svg';
import Exit from './assets/exit.svg';
Expand Down Expand Up @@ -60,6 +60,8 @@ export default function Navigation() {
const embeddingsName =
import.meta.env.VITE_EMBEDDINGS_NAME || 'openai_text-embedding-ada-002';

const navigate = useNavigate();

useEffect(() => {
if (!conversations) {
getConversations()
Expand Down Expand Up @@ -111,6 +113,7 @@ export default function Navigation() {
})
.then((response) => response.json())
.then((data) => {
navigate('/');
dispatch(setConversation(data));
dispatch(
updateConversationId({
Expand Down

2 comments on commit af9b4e4

@vercel
Copy link

@vercel vercel bot commented on af9b4e4 Oct 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs-gpt – ./frontend

docs-gpt-brown.vercel.app
docs-gpt-git-main-arc53.vercel.app
docs-gpt-arc53.vercel.app

@vercel
Copy link

@vercel vercel bot commented on af9b4e4 Oct 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nextra-docsgpt – ./docs

nextra-docsgpt.vercel.app
nextra-docsgpt-arc53.vercel.app
nextra-docsgpt-git-main-arc53.vercel.app
docs.docsgpt.co.uk

Please sign in to comment.