[WEB-583] fix: issue modal description on workspace level (#3814)

* fix: issue modal description on workspace level

* fix: issue modal description on workspace level
This commit is contained in:
Aaryan Khandelwal 2024-02-27 20:35:32 +05:30 committed by GitHub
parent 34d6b135f2
commit 002b2505f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -98,8 +98,8 @@ export const CreateUpdateIssueModal: React.FC<IssuesModalProps> = observer((prop
const { store: currentIssueStore, viewId } = issueStores[storeType];
const fetchIssueDetail = async (issueId: string | undefined) => {
if (!workspaceSlug || !projectId) return;
if (issueId === undefined) {
if (!workspaceSlug) return;
if (!projectId || issueId === undefined) {
setDescription("<p></p>");
return;
}