Commit 790c2986 authored by Matija Obreza's avatar Matija Obreza

Fix: Subset owner in editor

parent f4c1189c
......@@ -35,7 +35,7 @@ class BasicInfoStep extends React.Component<ILoginContainerProps, any> {
name="owner"
component={ SelectPartner }
onlyMine
value={ initialValues.institute ? initialValues.institute.owner : initialValues.owner }
value={ initialValues.owner }
label="subsets.dashboard.p.stepper.basicInfo.partner.label"
placeholder={ t('subsets.dashboard.p.stepper.basicInfo.paplaceholder') }
editable={ !(initialValues.uuid && initialValues.version) }
......
......@@ -24,7 +24,7 @@ class BasicInfoStep extends StepperTemplate<ISubsetProps> {
protected renderContent = () => (
<BasicInfoForm
initialValues={ this.props.item && {...this.props.item, owner: this.props.item && this.props.item.institute ? this.props.item.institute.owner : this.props.item.owner} }
initialValues={ this.props.item }
t={ this.props.t }
crops={ this.props.crops }
currentValues={ this.props.values }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment