فهرست منبع

fix: template load issue

Timothy J. Baek 1 سال پیش
والد
کامیت
082d1d15c3
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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) => {