diff --git a/app/models/file.ts b/app/models/file.ts index 9eceb34e00a..8cf55e6d3ba 100644 --- a/app/models/file.ts +++ b/app/models/file.ts @@ -57,7 +57,7 @@ export default class FileModel extends BaseFileItem { @hasMany('comment', { inverse: null }) comments!: AsyncHasMany; - @belongsTo('osf-model', { polymorphic: true }) + @belongsTo('osf-model', { inverse: null, polymorphic: true }) // eslint-disable-next-line max-len target!: (AsyncBelongsTo & AbstractNodeModel) | (AsyncBelongsTo & PreprintModel) | (AsyncBelongsTo & DraftNode);