mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
type fixes
This commit is contained in:
parent
b2e6dc3dbc
commit
e03c4487d1
@ -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 : {}),
|
||||||
}));
|
}));
|
||||||
|
Loading…
Reference in New Issue
Block a user