Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Serverless Search] Fix broken API key page #166368

Merged

Conversation

sphilipse
Copy link
Member

Summary

This fixes the create API key flow being broken due to an undefined user profile.

@@ -49,7 +49,7 @@ export const ApiKeyPanel = ({ setClientApiKey }: { setClientApiKey: (value: stri
<CreateApiKeyFlyout
onClose={() => setIsFlyoutOpen(false)}
setApiKey={saveApiKey}
username={userProfile.user.full_name || userProfile.user.username}
username={user?.full_name || user?.username || ''}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM, from looking at the code we only use this username for display on the form so I think everything should still work even is user === undefined right?

@sphilipse sphilipse enabled auto-merge (squash) September 13, 2023 15:04
@sphilipse sphilipse merged commit aac41da into elastic:main Sep 13, 2023
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
serverlessSearch 80.0KB 80.0KB +21.0B

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants