About DocsGPT 🦖
diff --git a/frontend/src/preferences/SelectDocsModal.tsx b/frontend/src/preferences/SelectDocsModal.tsx index 47d63ab0..26bd7f35 100644 --- a/frontend/src/preferences/SelectDocsModal.tsx +++ b/frontend/src/preferences/SelectDocsModal.tsx @@ -1,7 +1,7 @@ import { useEffect, useState } from 'react'; import { useDispatch } from 'react-redux'; import { ActiveState, Doc } from '../models/misc'; -import { setSelectedDocs, selectSelectedDocs } from './preferenceSlice'; +import { setSelectedDocs } from './preferenceSlice'; import { getDocs } from '../api/docs'; export default function APIKeyModal({ @@ -109,7 +109,7 @@ export default function APIKeyModal({ className="ml-auto h-10 w-20 rounded-lg bg-violet-800 text-white transition-all hover:bg-violet-700" > Save - {' '} + {isError && (
Please select source documentation.
diff --git a/frontend/src/preferences/preferenceSlice.ts b/frontend/src/preferences/preferenceSlice.ts
index 0323a5b8..0ee3b8e5 100644
--- a/frontend/src/preferences/preferenceSlice.ts
+++ b/frontend/src/preferences/preferenceSlice.ts
@@ -33,7 +33,5 @@ type RootState = ReturnType