[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:
rahulramesha 2024-07-08 18:52:10 +05:30 committed by GitHub
parent fb586c58d2
commit a623456e63
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 33 additions and 13 deletions

View file

@ -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}
>