Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix some reviews

x032205af2c240839a5
diff --git a/backend/src/ee/services/pam-account/pam-account-service.ts b/backend/src/ee/services/pam-account/pam-account-service.ts
index 8050f702ed..1c04b0553c 100644
--- a/backend/src/ee/services/pam-account/pam-account-service.ts
+++ b/backend/src/ee/services/pam-account/pam-account-service.ts
@@ -369,14 +369,16 @@ export const pamAccountServiceFactory = ({
if (canReadFolders && accountView === PamAccountView.Nested) {
const { totalCount } = await pamFolderDAL.findByProjectId({
projectId,
- parentId: folderId
+ parentId: folderId,
+ search: params.search
});
totalFolderCount = totalCount;
}
const { totalCount: totalAccountCount } = await pamAccountDAL.findByProjectIdWithResourceDetails({
projectId,
folderId,
- accountView
+ accountView,
+ search: params.search
});
const totalCount = totalFolderCount + totalAccountCount;
diff --git a/frontend/src/hooks/api/pam/queries.tsx b/frontend/src/hooks/api/pam/queries.tsx
index 7fcfb2569d..a9f67897fb 100644
--- a/frontend/src/hooks/api/pam/queries.tsx
+++ b/frontend/src/hooks/api/pam/queries.tsx
@@ -148,6 +148,7 @@ export const useListPamAccounts = (
return data;
},
+ placeholderData: (prev) => prev,
...options
});
};
diff --git a/frontend/src/pages/pam/PamAccountsPage/components/PamAccountsTable.tsx b/frontend/src/pages/pam/PamAccountsPage/components/PamAccountsTable.tsx
index df3ef308ab..b31aaa3303 100644
--- a/frontend/src/pages/pam/PamAccountsPage/components/PamAccountsTable.tsx
+++ b/frontend/src/pages/pam/PamAccountsPage/components/PamAccountsTable.tsx
@@ -228,6 +228,7 @@ export const PamAccountsTable = ({ projectId }: Props) => {
<AccountViewToggle
value={accountView}
onChange={(e) => {
+ setPage(1);
setAccountView(e);
navigate({
search: (prev) => ({