type fixes

This commit is contained in:
sriramveeraghanta 2023-08-14 19:39:34 +05:30
parent 70955b48d8
commit b2e6dc3dbc
4 changed files with 5 additions and 5 deletions

View File

@ -125,7 +125,7 @@ export const SingleBoardIssue: React.FC<Props> = ({
);
} else {
mutateIssues(
(prevData) =>
(prevData: any) =>
handleIssuesMutation(
formData,
groupTitle ?? "",

View File

@ -108,7 +108,7 @@ export const SingleListIssue: React.FC<Props> = ({
);
} else {
mutateIssues(
(prevData) =>
(prevData: any) =>
handleIssuesMutation(
formData,
groupTitle ?? "",

View File

@ -38,10 +38,10 @@ export const CyclesListGanttChartView: FC<Props> = ({ cycles, mutateCycles }) =>
const handleCycleUpdate = (cycle: ICycle, payload: IBlockUpdateData) => {
if (!workspaceSlug || !user) return;
mutateCycles((prevData) => {
mutateCycles((prevData: any) => {
if (!prevData) return prevData;
const newList = prevData.map((p) => ({
const newList = prevData.map((p: any) => ({
...p,
...(p.id === cycle.id
? {

View File

@ -47,7 +47,7 @@ export const SingleEstimate: React.FC<Props> = ({
estimate: estimate.id,
};
mutateProjectDetails((prevData) => {
mutateProjectDetails((prevData: any) => {
if (!prevData) return prevData;
return { ...prevData, estimate: estimate.id };