refactor: update create/update issue modal to use currently active store's create/update method. (#3395)

* refactor: update `create/update issue` modal to use currently active store's create/update method.

* chore: add condition to avoid multiple API calls if the current store is MODULE or CYCLE.

* remove: console log

* chore: update `currentStore` to `storeType`.
This commit is contained in:
Prateek Shourya 2024-01-18 14:42:10 +05:30 committed by sriram veeraghanta
parent 3f07c48b35
commit f347c1cd69
29 changed files with 251 additions and 102 deletions

View file

@ -75,7 +75,7 @@ export const ModuleEmptyState: React.FC<Props> = observer((props) => {
icon: <PlusIcon className="h-3 w-3" strokeWidth={2} />,
onClick: () => {
setTrackElement("MODULE_EMPTY_STATE");
toggleCreateIssueModal(true);
toggleCreateIssueModal(true, EIssuesStoreType.MODULE);
},
}}
secondaryButton={