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 {