Browse Source

fix: template load issue

Timothy J. Baek 1 năm trước cách đây
mục cha
commit
082d1d15c3
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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) => {