From f3665e36ae26346e2466071dfe6082ccfcac9056 Mon Sep 17 00:00:00 2001 From: Saurabh Kumar Bajpai Date: Fri, 7 Aug 2026 16:13:41 +0530 Subject: [PATCH] fix: resolve 1 bugs in Legiflow --- src/app/history/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/history/page.tsx b/src/app/history/page.tsx index 4286394..0cae0b4 100644 --- a/src/app/history/page.tsx +++ b/src/app/history/page.tsx @@ -43,7 +43,7 @@ export default function HistoryPage() { limit(50) ); const querySnapshot = await getDocs(q); - data = querySnapshot.docs.map(doc => ({ + data = querySnapshot.(docs ?? []).map(doc => ({ id: doc.id, ...doc.data() })) as HistoryItem[];