-
Notifications
You must be signed in to change notification settings - Fork 12
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
Editing an app changes it's display name to unique name - #2 #214
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -281,7 +281,6 @@ export const AppForm = ({ id }: AppFormProps): React.ReactElement => { | |||
useEffect(() => { | |||
// istanbul ignore next | |||
if (currentFormInput) { | |||
setCurrentServerName(currentFormInput.display_name); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was unnecessary as server name is being stored globally
@@ -101,6 +102,7 @@ export const ServerTypes = (): React.ReactElement => { | |||
updateQuery(payload, { | |||
onSuccess: async () => { | |||
queryClient.invalidateQueries({ queryKey: ['app-state'] }); | |||
window.location.assign(APP_BASE_URL); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was previously missed. Without this, the user stays on the server types page after the payload response.
Reference Issues or PRs
N/A
What does this implement/fix?
Put a
x
in the boxes that applyTesting
Any other comments?