Skip to content

Commit 5ff1473

Browse files
committed
Merge branch 'release/25.08.0'
2 parents 383df77 + e449b22 commit 5ff1473

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

app/institutions/dashboard/-components/object-list/component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

app/institutions/discover/controller.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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;

app/preprints/-components/submit/supplements/component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)