* fix: avoided uncessary api call while creating issue draft (#6230)
* fix: fixed import order in module header
This commit is contained in:
parent
44d8de1169
commit
0a320a8540
2 changed files with 16 additions and 14 deletions
|
|
@ -187,6 +187,7 @@ export const CreateUpdateIssueModalBase: React.FC<IssuesModalProps> = observer((
|
|||
if (!response) throw new Error();
|
||||
|
||||
// check if we should add issue to cycle/module
|
||||
if (!is_draft_issue) {
|
||||
if (
|
||||
payload.cycle_id &&
|
||||
payload.cycle_id !== "" &&
|
||||
|
|
@ -201,6 +202,7 @@ export const CreateUpdateIssueModalBase: React.FC<IssuesModalProps> = observer((
|
|||
) {
|
||||
await addIssueToModule(response, payload.module_ids);
|
||||
}
|
||||
}
|
||||
|
||||
// add other property values
|
||||
if (response.id && response.project_id) {
|
||||
|
|
|
|||
|
|
@ -4,13 +4,13 @@ import React, { FC, useCallback, useEffect, useRef, useState } from "react";
|
|||
import { observer } from "mobx-react";
|
||||
import { useParams } from "next/navigation";
|
||||
import { ListFilter, Search, X } from "lucide-react";
|
||||
// plane utils
|
||||
// plane helpers
|
||||
import { useOutsideClickDetector } from "@plane/hooks";
|
||||
// types
|
||||
import { TModuleFilters } from "@plane/types";
|
||||
// ui
|
||||
import { Tooltip } from "@plane/ui";
|
||||
// plane utils
|
||||
import { cn } from "@plane/utils";
|
||||
// components
|
||||
import { FiltersDropdown } from "@/components/issues";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue