[WEB-1890] fix: issue creation by using appropriate stores (#5072)
* fix issue creation by using appropriate stores * add comments * change useIssuesStore hook to use useIssueStoreType
This commit is contained in:
parent
fb586c58d2
commit
a623456e63
6 changed files with 33 additions and 13 deletions
|
|
@ -7,7 +7,6 @@ import { TIssue } from "@plane/types";
|
|||
// components
|
||||
import { CreateUpdateIssueModal } from "@/components/issues";
|
||||
// constants
|
||||
import { EIssuesStoreType } from "@/constants/issue";
|
||||
// helpers
|
||||
import { cn } from "@/helpers/common.helper";
|
||||
// hooks
|
||||
|
|
@ -90,7 +89,7 @@ export const SidebarQuickActions = observer(() => {
|
|||
)}
|
||||
onClick={() => {
|
||||
setTrackElement("APP_SIDEBAR_QUICK_ACTIONS");
|
||||
toggleCreateIssueModal(true, EIssuesStoreType.PROJECT);
|
||||
toggleCreateIssueModal(true);
|
||||
}}
|
||||
disabled={disabled}
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue