Skip to content

Commit 5a5fd60

Browse files
Copilotrenemadsen
andcommitted
Fix duplicate identifier and missing this. prefix issues (2 files)
Co-authored-by: renemadsen <[email protected]>
1 parent c71beb3 commit 5a5fd60

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

eform-client/src/app/plugins/modules/backend-configuration-pn/modules/documents/components/documents-actions/document-edit/documents-document-edit.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class DocumentsDocumentEditComponent implements OnInit {
3636
private backendConfigurationPnDocumentsService = inject(BackendConfigurationPnDocumentsService);
3737
private localeService = inject(LocaleService);
3838
public dialogRef = inject(MatDialogRef<DocumentsDocumentEditComponent>);
39-
private documentModel = inject<DocumentModel>(MAT_DIALOG_DATA);
39+
private injectedDocumentModel = inject<DocumentModel>(MAT_DIALOG_DATA);
4040

4141
form: FormGroup;
4242
documentModel: DocumentModel = new DocumentModel();
@@ -84,7 +84,7 @@ export class DocumentsDocumentEditComponent implements OnInit {
8484

8585

8686
constructor() {
87-
this.getDocument(documentModel.id);
87+
this.getDocument(this.injectedDocumentModel.id);
8888
this.selectCurrentUserLanguageId$.subscribe((languageId) => {
8989
this.selectedLanguage = languageId;
9090
});

eform-client/src/app/plugins/modules/backend-configuration-pn/modules/documents/components/documents-folders/documents-folder-edit/documents-folder-edit.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class DocumentsFolderEditComponent implements OnInit, OnDestroy {
5050

5151

5252
ngOnInit() {
53-
this.getFolder(selectedFolder.id);
53+
this.getFolder(this.selectedFolder.id);
5454

5555
this.selectCurrentUserLanguageId$.subscribe((languageId) => {
5656
this.selectedLanguageId = languageId;

0 commit comments

Comments
 (0)