From 3ea450e94a1fdb81dc302103017e136ac2233c09 Mon Sep 17 00:00:00 2001 From: carlosmonastyrski Date: Fri, 2 May 2025 13:41:53 -0300 Subject: [PATCH] Add groups to ssh hosts allowed principals fix delete principal row issue --- .../src/pages/ssh/SshHostsPage/components/SshHostModal.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/ssh/SshHostsPage/components/SshHostModal.tsx b/frontend/src/pages/ssh/SshHostsPage/components/SshHostModal.tsx index 63f837606..570633ce1 100644 --- a/frontend/src/pages/ssh/SshHostsPage/components/SshHostModal.tsx +++ b/frontend/src/pages/ssh/SshHostsPage/components/SshHostModal.tsx @@ -412,7 +412,7 @@ export const SshHostModal = ({ popUp, handlePopUpToggle }: Props) => {
{value.map((principal, principalIndex) => (
@@ -482,7 +482,7 @@ export const SshHostModal = ({ popUp, handlePopUpToggle }: Props) => { const newPrincipals = value.filter( (_, idx) => idx !== principalIndex ); - onChange(newPrincipals); + onChange([...newPrincipals]); }} >