From 7d38099b69357e7a15e3c2fea58e339e8400e8c2 Mon Sep 17 00:00:00 2001 From: Jacobjohnjeevan Date: Tue, 15 Oct 2024 11:13:33 +0530 Subject: [PATCH] Fix for csv generation in shifting --- src/Components/Shifting/BoardView.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Components/Shifting/BoardView.tsx b/src/Components/Shifting/BoardView.tsx index f83e0a4974..c071cc4d93 100644 --- a/src/Components/Shifting/BoardView.tsx +++ b/src/Components/Shifting/BoardView.tsx @@ -143,7 +143,10 @@ export default function BoardView() { { const { data } = await request(routes.downloadShiftRequests, { - query: { ...formatFilter(qParams), csv: true }, + query: { + ...formatFilter({ ...qParams, status: board.text }), + csv: true, + }, }); return data ?? null; }}