Skip to content

Commit

Permalink
bugfix keywords
Browse files Browse the repository at this point in the history
drop label when no keywords provided
  • Loading branch information
rimamrahal authored Nov 18, 2022
1 parent 020fdf1 commit 96ec339
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ function buildUserSelectionForm (users) {

const seperator = document.createTextNode(" – ")

if ('keywords' in user && 'keywords'.trim() !== '') {
if (user.keywords !== null && user.keywords.trim() !== '') {
wrapper.appendChild(seperator)

const keywords = document.createTextNode("Keywords: " + user.keywords.replaceAll(" ", ", ").replaceAll("_", " "))
Expand Down

0 comments on commit 96ec339

Please sign in to comment.