FIX: TagsHtmlCallback params can be undefined (#174)

This commit is contained in:
Jarek Radosz 2021-07-20 13:53:17 +02:00 committed by GitHub
parent 4e657b97df
commit dfb30fc104
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ function initialize(api) {
api.addDiscoveryQueryParam("assigned", { replace: true, refreshModel: true });
api.addTagsHtmlCallback((topic, params) => {
api.addTagsHtmlCallback((topic, params = {}) => {
const assignedTo = topic.get("assigned_to_user.username");
if (assignedTo) {
const assignedPath = topic.assignedToUserPath;