mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-30 00:53:14 +00:00
adds default doc
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
// not all properties in Doc are going to be present. Make some optional
|
||||
export type Doc = {
|
||||
name: string;
|
||||
language: string;
|
||||
@@ -52,7 +53,9 @@ export function setLocalRecentDocs(doc: Doc): void {
|
||||
}
|
||||
|
||||
const docPath =
|
||||
doc.language + '/' + namePath + '/' + doc.version + '/' + doc.model;
|
||||
doc.name === 'default'
|
||||
? 'default'
|
||||
: doc.language + '/' + namePath + '/' + doc.version + '/' + doc.model;
|
||||
fetch('https://docsapi.arc53.com/api/docs_check', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
|
||||
Reference in New Issue
Block a user