fix: fix select all rows checkbox being checked if no folders/secrets

This commit is contained in:
Scott Wilson
2024-10-21 09:45:56 -07:00
parent 2cd1141a65
commit 7403385e7c

View File

@@ -524,6 +524,8 @@ export const SecretOverviewPage = () => {
);
const allRowsSelectedOnPage = useMemo(() => {
if (!secrets?.length && !folders?.length) return { isChecked: false, isIndeterminate: false };
if (
(!secrets?.length ||
secrets?.every((secret) => selectedEntries[EntryType.SECRET][secret.key])) &&