mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Merge pull request #2424 from scott-ray-wilson/secrets-pagination-fix
Fix: Account for secret import count in secrets offset
This commit is contained in:
@@ -280,7 +280,10 @@ export const SecretMainPage = () => {
|
||||
: [];
|
||||
|
||||
remainingRows -= paginatedFolders.length;
|
||||
const dynamicSecretStartIndex = Math.max(0, paginationOffset - filteredFolders.length);
|
||||
const dynamicSecretStartIndex = Math.max(
|
||||
0,
|
||||
paginationOffset - filteredSecretImports.length - filteredFolders.length
|
||||
);
|
||||
const paginatiedDynamicSecrets =
|
||||
remainingRows > 0
|
||||
? filteredDynamicSecrets.slice(
|
||||
@@ -292,7 +295,10 @@ export const SecretMainPage = () => {
|
||||
remainingRows -= paginatiedDynamicSecrets.length;
|
||||
const secretStartIndex = Math.max(
|
||||
0,
|
||||
paginationOffset - filteredFolders.length - filteredDynamicSecrets.length
|
||||
paginationOffset -
|
||||
filteredSecretImports.length -
|
||||
filteredFolders.length -
|
||||
filteredDynamicSecrets.length
|
||||
);
|
||||
|
||||
const paginatiedSecrets =
|
||||
|
||||
Reference in New Issue
Block a user