Skip to content

Commit

Permalink
Also use default label if share label is null
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliusknorr committed Nov 7, 2018
1 parent 836ba4f commit 837bca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/js/sharedialoglinkshareview.js
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@
return _.extend({}, share, {
cid: share.id,
shareAllowed: true,
linkShareLabel: share.label !== '' ? share.label : t('core', 'Share link'),
linkShareLabel: share.label !== '' && share.label !== null ? share.label : t('core', 'Share link'),
popoverMenu: {},
shareLinkURL: share.url,
newShareTitle: t('core', 'New share link'),
Expand Down

0 comments on commit 837bca3

Please sign in to comment.