Skip to content

Commit

Permalink
Merge pull request #157 from nextmcloud/nmc/2523-my-shares-types-fix
Browse files Browse the repository at this point in the history
My shares - fix icons not rendering if only one share exists
  • Loading branch information
memurats authored Oct 19, 2023
2 parents 4be4181 + ab6d7cb commit b7d76c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/shareicons.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const generateText = (recipients) => {
*/
const generateShareList = (action, recipients, shareTypes) => {
action.empty()
shareTypes.split(',').forEach(shareType => {
String(shareTypes).split(',').forEach(shareType => {
const iconEl = document.createElement('span')
iconEl.className = 'icon'
if (parseInt(shareType) === ShareTypes.SHARE_TYPE_LINK) {
Expand Down

0 comments on commit b7d76c1

Please sign in to comment.