Skip to content

Commit 521b7d4

Browse files
committed
updated value param check
1 parent 24cc3fb commit 521b7d4

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/app/browse-by/browse-by-metadata-page/browse-by-metadata-page.component.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,11 @@ export class BrowseByMetadataPageComponent implements OnInit, OnDestroy {
152152
this.browseId = params.id || this.defaultBrowseId;
153153
this.authority = params.authority;
154154

155-
this.value = +params.value || params.value || '';
155+
if (typeof params.value === 'string'){
156+
this.value = params.value.trim();
157+
} else {
158+
this.value = '';
159+
}
156160

157161
if (typeof params.startsWith === 'string'){
158162
this.startsWith = params.startsWith.trim();

0 commit comments

Comments
 (0)