From 36c0de8eed89f11ea70badc8a3f71257a2228193 Mon Sep 17 00:00:00 2001 From: Alex ORLUC <alex.orluc@maarch.org> Date: Mon, 5 Oct 2020 16:58:20 +0200 Subject: [PATCH] FEAT #13271 TIME 0:15 fix js error --- src/frontend/app/tag/indexing/tag-input.component.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/frontend/app/tag/indexing/tag-input.component.ts b/src/frontend/app/tag/indexing/tag-input.component.ts index c6612de52e8..3cd60e96fd6 100644 --- a/src/frontend/app/tag/indexing/tag-input.component.ts +++ b/src/frontend/app/tag/indexing/tag-input.component.ts @@ -217,7 +217,10 @@ export class TagInputComponent implements OnInit { } openThesaurus(tag: any = null) { - tag = this.returnValue === 'id' ? tag : tag.id; + if (tag !== null) { + tag = this.returnValue === 'id' ? tag : tag.id; + } + const dialogRef = this.dialog.open(ThesaurusModalComponent, { panelClass: 'maarch-modal', width: '600px', -- GitLab