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 {