diff --git a/client/src/app/shared/models/motions/statute-paragraph.ts b/client/src/app/shared/models/motions/statute-paragraph.ts index 35f841e9c..7fbb814a9 100644 --- a/client/src/app/shared/models/motions/statute-paragraph.ts +++ b/client/src/app/shared/models/motions/statute-paragraph.ts @@ -18,5 +18,3 @@ export class StatuteParagraph extends BaseModel { return this.title; } } - -BaseModel.registerCollectionElement('motions/statute-paragraph', StatuteParagraph); diff --git a/client/src/app/site/motions/motions.config.ts b/client/src/app/site/motions/motions.config.ts index 58ede741e..68ce03514 100644 --- a/client/src/app/site/motions/motions.config.ts +++ b/client/src/app/site/motions/motions.config.ts @@ -5,6 +5,7 @@ import { Workflow } from '../../shared/models/motions/workflow'; import { MotionCommentSection } from '../../shared/models/motions/motion-comment-section'; import { MotionChangeReco } from '../../shared/models/motions/motion-change-reco'; import { MotionBlock } from '../../shared/models/motions/motion-block'; +import { StatuteParagraph } from '../../shared/models/motions/statute-paragraph'; export const MotionsAppConfig: AppConfig = { name: 'motions', @@ -14,7 +15,8 @@ export const MotionsAppConfig: AppConfig = { { collectionString: 'motions/workflow', model: Workflow }, { collectionString: 'motions/motion-comment-section', model: MotionCommentSection }, { collectionString: 'motions/motion-change-recommendation', model: MotionChangeReco }, - { collectionString: 'motions/motion-block', model: MotionBlock } + { collectionString: 'motions/motion-block', model: MotionBlock }, + { collectionString: 'motions/statute-paragraph', model: StatuteParagraph } ], mainMenuEntries: [ {