From 98d4473501c2cde89ae8b72edea3e013edc4df1d Mon Sep 17 00:00:00 2001 From: Dakshesh Jain <65905942+dakshesh14@users.noreply.github.com> Date: Thu, 23 Feb 2023 17:50:47 +0530 Subject: [PATCH] fix: issue view not updating order_by value (#324) --- apps/app/contexts/issue-view.context.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/app/contexts/issue-view.context.tsx b/apps/app/contexts/issue-view.context.tsx index adbb688f3..498608fbe 100644 --- a/apps/app/contexts/issue-view.context.tsx +++ b/apps/app/contexts/issue-view.context.tsx @@ -229,7 +229,10 @@ export const IssueViewContextProvider: React.FC<{ children: React.ReactNode }> = }); if (!workspaceSlug || !projectId) return; - saveDataToServer(workspaceSlug as string, projectId as string, state); + saveDataToServer(workspaceSlug as string, projectId as string, { + ...state, + orderBy: property, + }); }, [projectId, workspaceSlug, state] );