Skip to content
This repository was archived by the owner on Apr 14, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion app/preprints/-components/submit/supplements/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ export default class Supplements extends Component<SupplementsArgs>{
public async removeSelectedProject(): Promise<void> {
try {
await this.args.manager.preprint.removeM2MRelationship('node'); // Remove relationship
this.args.manager.preprint.set('node', null); // Ensure local cache is updated
// Remove relationship on the node side, this only clears the cache locally
this.args.manager.preprint.node.get('preprints')
.removeObject(this.args.manager.preprint);
this.isSupplementAttached = false;
this.validate();
} catch (error) {
Expand Down