type fixes

This commit is contained in:
sriramveeraghanta 2023-08-14 19:40:01 +05:30
parent b2e6dc3dbc
commit e03c4487d1

View File

@ -15,10 +15,10 @@ export const updateGanttIssue = (
) => { ) => {
if (!issue || !workspaceSlug || !user) return; if (!issue || !workspaceSlug || !user) return;
mutate((prevData: IIssue[]) => { mutate((prevData: any) => {
if (!prevData) return prevData; if (!prevData) return prevData;
const newList = prevData.map((p) => ({ const newList = prevData.map((p: any) => ({
...p, ...p,
...(p.id === issue.id ? payload : {}), ...(p.id === issue.id ? payload : {}),
})); }));