[WEB-2859]chore: sub issue list optimization (#6232)
* chore: optimized api calls for sub-issue widget * chore: added api call for on sub issues widget click
This commit is contained in:
parent
9b71a702c7
commit
f10f9cbd41
1 changed files with 1 additions and 4 deletions
|
|
@ -1,5 +1,5 @@
|
|||
"use client";
|
||||
import React, { FC, useCallback, useEffect, useState } from "react";
|
||||
import React, { FC, useEffect, useState, useCallback } from "react";
|
||||
import { observer } from "mobx-react";
|
||||
import { EIssueServiceType } from "@plane/constants";
|
||||
import { TIssue, TIssueServiceType } from "@plane/types";
|
||||
|
|
@ -97,9 +97,6 @@ export const SubIssuesCollapsibleContent: FC<Props> = observer((props) => {
|
|||
|
||||
useEffect(() => {
|
||||
handleFetchSubIssues();
|
||||
return () => {
|
||||
handleFetchSubIssues();
|
||||
};
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [parentIssueId]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue