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

fix: reset the form value each time the modelId changes #1006

Merged
merged 1 commit into from
Sep 27, 2023

Conversation

kazaneshimizu
Copy link
Contributor

What?

Reset the form value each time the modelId changes.

Why?

Contents list page and api preview page refer to different models.

How?

Detect modelId with useEffect and reset the value.

@vercel
Copy link

vercel bot commented Sep 27, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
collections ✅ Ready (Inspect) Visit Preview Sep 27, 2023 11:34pm

@kazaneshimizu kazaneshimizu marked this pull request as ready for review September 27, 2023 23:34
@kazaneshimizu kazaneshimizu merged commit f66b221 into main Sep 27, 2023
5 checks passed
@kazaneshimizu kazaneshimizu deleted the fix/api-preview branch September 27, 2023 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant