Commit 7af39e83 authored by Matija Obreza's avatar Matija Obreza
Browse files

Merge branch '232-subset-accessionrefs-not-updated-correctly' into 'master'

Resolve "Subset: accessionRefs not updated correctly"

Closes #232

See merge request genesys-pgr/genesys-ui!240
parents 481b42ee 64d108d8
...@@ -150,6 +150,11 @@ class DisplayPage extends React.Component<IDisplayPageProps, any> { ...@@ -150,6 +150,11 @@ class DisplayPage extends React.Component<IDisplayPageProps, any> {
<a href={ institute.details.url }> { institute.details.url }</a> <a href={ institute.details.url }> { institute.details.url }</a>
</PropertiesItem> </PropertiesItem>
} }
{ institute.details.owner &&
<PropertiesItem title={ t('accessions.public.p.display.partner') }>
<b>{ institute.details.owner.shortName }</b> { institute.details.owner.name }
</PropertiesItem>
}
<PropertiesItem title={ t('institutes.common.accessionsInGenesys') }> <PropertiesItem title={ t('institutes.common.accessionsInGenesys') }>
<a onClick={ this.applyInstituteCodeFilter }><Number value={ institute.details.accessionCount } /></a> <a onClick={ this.applyInstituteCodeFilter }><Number value={ institute.details.accessionCount } /></a>
</PropertiesItem> </PropertiesItem>
......
...@@ -52,6 +52,7 @@ function dashboardSubsets(state = INITIAL_STATE, action: IReducerAction) { ...@@ -52,6 +52,7 @@ function dashboardSubsets(state = INITIAL_STATE, action: IReducerAction) {
return update(state, { return update(state, {
subset: {$set: apiCall}, subset: {$set: apiCall},
paged: {$set: null}, paged: {$set: null},
accessionRefs: {$set: null},
}); });
} }
} }
......
...@@ -45,6 +45,7 @@ function publicSubsets(state = INITIAL_STATE, action: IReducerAction) { ...@@ -45,6 +45,7 @@ function publicSubsets(state = INITIAL_STATE, action: IReducerAction) {
} else { } else {
return update(state, { return update(state, {
subset: { $set: apiCall }, subset: { $set: apiCall },
accessionRefs: {$set: null},
}); });
} }
} }
......
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