Explorar o código

fix: template load issue

Timothy J. Baek hai 1 ano
pai
achega
082d1d15c3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/lib/apis/rag/index.ts

+ 1 - 1
src/lib/apis/rag/index.ts

@@ -82,7 +82,7 @@ export const getRAGTemplate = async (token: string) => {
 		throw error;
 	}
 
-	return res;
+	return res?.template ?? '';
 };
 
 export const updateRAGTemplate = async (token: string, template: string) => {