Skip to content

Commit

Permalink
disables form on locale change
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobsfletch committed Oct 7, 2024
1 parent ae12aed commit e2bb53b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/ui/src/providers/DocumentInfo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -547,11 +547,13 @@ const DocumentInfo: React.FC<
initialDataFromProps === undefined ||
localeChanged
) {
if (localeChanged) {
prevLocale.current = locale
}

const getInitialState = async () => {
if (localeChanged) {
prevLocale.current = locale
}

setData(undefined)
setInitialState(undefined)
setIsError(false)
setIsLoading(true)

Expand Down

0 comments on commit e2bb53b

Please sign in to comment.