fix: attribute activity tab crashing (#4276)

This commit is contained in:
Dhruwang Jariwala
2024-11-11 14:04:26 +05:30
committed by GitHub
parent c34a08561e
commit 5918c42cf9

View File

@@ -20,13 +20,17 @@ export const getSegmentsByAttributeClassAction = authenticatedActionClient
userId: ctx.user.id,
organizationId: await getOrganizationIdFromEnvironmentId(parsedInput.environmentId),
access: [
{
type: "organization",
roles: ["owner", "manager"],
},
{
type: "productTeam",
minPermission: "read",
productId: await getProductIdFromEnvironmentId(parsedInput.environmentId),
},
],
});
const segments = await getSegmentsByAttributeClassName(
parsedInput.environmentId,
parsedInput.attributeClass.name