File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
dashboard/-components/object-list
preprints/-components/submit/supplements Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,7 @@ export default class InstitutionalObjectList extends Component<InstitutionalObje
115115 }
116116 const cardSearchUrl = new URL ( ( cardSearch . links . self as string ) ) ;
117117 cardSearchUrl . searchParams . set ( 'page[size]' , '10000' ) ;
118+ cardSearchUrl . searchParams . set ( 'page[cursor]' , '' ) ;
118119 cardSearchUrl . searchParams . set ( 'acceptMediatype' , format ) ;
119120 cardSearchUrl . searchParams . set ( 'withFileName' , `${ this . args . objectType } -search-results` ) ;
120121
Original file line number Diff line number Diff line change @@ -22,9 +22,6 @@ export default class InstitutionDiscoverController extends Controller {
2222 let key = 'affiliation' ;
2323 const { resourceType } = this ;
2424 switch ( resourceType ) {
25- case ResourceTypeFilterValue . Preprints :
26- key = 'creator.affiliation' ;
27- break ;
2825 case ResourceTypeFilterValue . Files :
2926 key = 'isContainedBy.affiliation' ;
3027 break ;
Original file line number Diff line number Diff line change @@ -70,7 +70,9 @@ export default class Supplements extends Component<SupplementsArgs>{
7070 public async removeSelectedProject ( ) : Promise < void > {
7171 try {
7272 await this . args . manager . preprint . removeM2MRelationship ( 'node' ) ; // Remove relationship
73- this . args . manager . preprint . set ( 'node' , null ) ; // Ensure local cache is updated
73+ // Remove relationship on the node side, this only clears the cache locally
74+ this . args . manager . preprint . node . get ( 'preprints' )
75+ . removeObject ( this . args . manager . preprint ) ;
7476 this . isSupplementAttached = false ;
7577 this . validate ( ) ;
7678 } catch ( error ) {
You can’t perform that action at this time.
0 commit comments