forked from p15670423/monkey
UI: Fix a bug in ConfigurePage.js responsible for lacking re-render
key property makes the component unique and causes a re-construction. This solves a bug where different configuration page tabs remain with the same data on switch
This commit is contained in:
parent
ab720a5a55
commit
26f51d1540
|
@ -353,17 +353,14 @@ class ConfigurePageComponent extends AuthComponent {
|
|||
formProperties['formData'],
|
||||
formProperties['uiSchema']);
|
||||
|
||||
if (this.state.selectedSection === 'internal') {
|
||||
return (<InternalConfig {...formProperties}/>)
|
||||
} else {
|
||||
console.log(displayedSchema)
|
||||
return (
|
||||
<div>
|
||||
<Form {...formProperties}>
|
||||
<Form {...formProperties} key={displayedSchema.title}>
|
||||
<button type='submit' className={'hidden'}>Submit</button>
|
||||
</Form>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
};
|
||||
|
||||
setPbaFilenameWindows = (filename) => {
|
||||
|
|
Loading…
Reference in New Issue