X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/ec862c8c86eab36e998186f3138dd396d4ec13f6..ce576a6053b03f3222b30a129d77aa7f54fb1904:/src/views/ssh-key-panel/ssh-key-panel.tsx

diff --git a/src/views/ssh-key-panel/ssh-key-panel.tsx b/src/views/ssh-key-panel/ssh-key-panel.tsx
index f2b7dd3c..672b1bf3 100644
--- a/src/views/ssh-key-panel/ssh-key-panel.tsx
+++ b/src/views/ssh-key-panel/ssh-key-panel.tsx
@@ -10,8 +10,8 @@ import { openSshKeyContextMenu } from 'store/context-menu/context-menu-actions';
 import { SshKeyPanelRoot, SshKeyPanelRootDataProps, SshKeyPanelRootActionProps } from 'views/ssh-key-panel/ssh-key-panel-root';
 
 const mapStateToProps = (state: RootState): SshKeyPanelRootDataProps => {
-    const sshKeys = state.auth.sshKeys = state.auth.sshKeys.filter((key) => {
-      return key.authorizedUserUuid == state.auth.user.uuid;
+    const sshKeys = state.auth.sshKeys.filter((key) => {
+      return key.authorizedUserUuid == (state.auth.user ? state.auth.user.uuid : null);
     });
 
     return {
