Skip to content

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

Fix SshHostsTable component

Tuan Danga285a14ffff3
diff --git a/frontend/src/pages/ssh/SshHostsPage/components/SshHostsTable.tsx b/frontend/src/pages/ssh/SshHostsPage/components/SshHostsTable.tsx
index 9e36a4aacd..491307d216 100644
--- a/frontend/src/pages/ssh/SshHostsPage/components/SshHostsTable.tsx
+++ b/frontend/src/pages/ssh/SshHostsPage/components/SshHostsTable.tsx
@@ -107,16 +107,20 @@ export const SshHostsTable = ({ handlePopUpOpen }: Props) => {
{} as Record<string, Set<string>>
);
- const entriesFromHost = hostMappings.map(({ loginUser, allowedPrincipals }) => ({
- loginUser,
- source: LoginMappingSource.HOST,
- usernames: allowedPrincipals.usernames
- }));
+ const entriesFromHost = hostMappings.map(
+ ({ loginUser, allowedPrincipals }) => ({
+ loginUser,
+ source: LoginMappingSource.HOST,
+ usernames: allowedPrincipals.usernames
+ })
+ );
const entriesFromGroup = groupMappings
.map(({ loginUser, allowedPrincipals }) => {
const existing = hostLoginUserToPrincipals[loginUser] || new Set();
- const filteredUsernames = allowedPrincipals.usernames.filter((u) => !existing.has(u));
+ const filteredUsernames = allowedPrincipals.usernames.filter(
+ (u) => !existing.has(u)
+ );
return filteredUsernames.length > 0
? {
loginUser,
@@ -233,8 +237,4 @@ export const SshHostsTable = ({ handlePopUpOpen }: Props) => {
</TableContainer>
</div>
);
-};
- </TableContainer>
- </div>
- );
};