[WEB-5507] fix: remove module checks in analytics sidebar link handlers (#8177)

This commit is contained in:
Prateek Shourya 2025-11-26 00:02:14 +05:30 committed by GitHub
parent 3f11183768
commit 37c59ef0d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -124,7 +124,7 @@ export const ModuleAnalyticsSidebar = observer(function ModuleAnalyticsSidebar(p
};
const handleUpdateLink = async (formData: ModuleLink, linkId: string) => {
if (!workspaceSlug || !projectId || !module) return;
if (!workspaceSlug || !projectId) return;
const payload = { metadata: {}, ...formData };
@ -145,7 +145,7 @@ export const ModuleAnalyticsSidebar = observer(function ModuleAnalyticsSidebar(p
};
const handleDeleteLink = async (linkId: string) => {
if (!workspaceSlug || !projectId || !module) return;
if (!workspaceSlug || !projectId) return;
deleteModuleLink(workspaceSlug.toString(), projectId.toString(), moduleId.toString(), linkId)
.then(() => {