19908: Add optional required flag for project input, make not required for advanced...
[arvados-workbench2.git] / src / views / ssh-key-panel / ssh-key-panel.tsx
index 0c86b3640d9ea18f9890ff2ef1bb7270fa8afb23..24ca3468d181bc37dafe9d51f2cbdc4098fc7ae5 100644 (file)
@@ -11,7 +11,7 @@ import { SshKeyPanelRoot, SshKeyPanelRootDataProps, SshKeyPanelRootActionProps }
 
 const mapStateToProps = (state: RootState): SshKeyPanelRootDataProps => {
     const sshKeys = state.auth.sshKeys.filter((key) => {
-      return key.authorizedUserUuid == state.auth.user.uuid;
+      return key.authorizedUserUuid === (state.auth.user ? state.auth.user.uuid : null);
     });
 
     return {