From b63af0bc6691f33ed64acb14b921a0a88640f7c0 Mon Sep 17 00:00:00 2001 From: Andrew Azores Date: Mon, 23 Dec 2024 10:47:57 -0500 Subject: [PATCH] fix(storedcredentials): define target match array to avoid undefined reference error --- src/app/SecurityPanel/Credentials/StoredCredentials.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/SecurityPanel/Credentials/StoredCredentials.tsx b/src/app/SecurityPanel/Credentials/StoredCredentials.tsx index d4b30febd..c4cf0faf0 100644 --- a/src/app/SecurityPanel/Credentials/StoredCredentials.tsx +++ b/src/app/SecurityPanel/Credentials/StoredCredentials.tsx @@ -249,6 +249,7 @@ export const StoredCredentials = () => { map((cred) => ({ id: message.id, matchExpression: cred.matchExpression, + targets: cred.targets, numMatchingTargets: cred.targets.length, })), ); @@ -425,7 +426,7 @@ export const StoredCredentials = () => { - {credential.targets.length} + {credential?.targets?.length ?? 0}