Skip to content

Commit

Permalink
fix: hide deleted permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
adityathebe authored and moshloop committed Jan 15, 2025
1 parent 6e8b3e3 commit 66302b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/services/permissions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export function fetchPermissions(

const { pageSize, pageIndex } = pagination;

const url = `/permissions?${queryParam}&select=${selectFields.join(",")}&limit=${pageSize}&offset=${pageIndex * pageSize}`;
const url = `/permissions?${queryParam}&select=${selectFields.join(",")}&deleted_at=is.null&limit=${pageSize}&offset=${pageIndex * pageSize}`;
return resolvePostGrestRequestWithPagination(
IncidentCommander.get<PermissionAPIResponse[]>(url, {
headers: {
Expand Down

0 comments on commit 66302b8

Please sign in to comment.