guard against coercing undefined to a string

visible in the author's tooltip when author marks were enabled
for the document, but hidden by the local user
This commit is contained in:
ansuz 2020-04-22 15:09:27 -04:00
parent cf8841cdfa
commit c860819eb1

View File

@ -46,7 +46,7 @@ define([
inclusiveRight: uid === Env.myAuthorId, inclusiveRight: uid === Env.myAuthorId,
css: "background-color: " + rgba, css: "background-color: " + rgba,
attributes: { attributes: {
title: Env.opacity ? Messages._getKey('cba_writtenBy', [name]) : undefined, title: Env.opacity ? Messages._getKey('cba_writtenBy', [name]) : '',
'data-type': 'authormark', 'data-type': 'authormark',
'data-uid': uid 'data-uid': uid
} }