mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 10:55:37 +00:00
Merge pull request #16416 from strapi/feature/review-workflow-i18n-change
CM: Set value instead of defaultValue to account for i18n re-renders
This commit is contained in:
commit
2146476d7f
@ -111,7 +111,6 @@ export function InformationBoxEE() {
|
||||
components={{
|
||||
LoadingIndicator: () => <Loader small />,
|
||||
}}
|
||||
defaultValue={{ value: activeWorkflowStage?.id, label: activeWorkflowStage?.name }}
|
||||
error={formattedError}
|
||||
inputId={ATTRIBUTE_NAME}
|
||||
isLoading={isLoading}
|
||||
@ -122,6 +121,7 @@ export function InformationBoxEE() {
|
||||
options={
|
||||
workflow ? workflow.stages.map(({ id, name }) => ({ value: id, label: name })) : []
|
||||
}
|
||||
value={{ value: activeWorkflowStage?.id, label: activeWorkflowStage?.name }}
|
||||
/>
|
||||
|
||||
<FieldError />
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user