backportbot[bot] 1 week ago
committed by GitHub
parent
commit
54624aae81
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      apps/federatedfilesharing/src/external.js

3
apps/federatedfilesharing/src/external.js

@ -35,7 +35,8 @@ window.OCA.Sharing.showAddExternalDialog = function(share, passwordProtected, ca
.replace(/\/$/, '') // remove trailing slash
showRemoteShareDialog(name, owner, remote, passwordProtected)
.then((result, password) => callback(result, { ...share, password }))
// eslint-disable-next-line n/no-callback-literal
.then((password) => callback(true, { ...share, password }))
// eslint-disable-next-line n/no-callback-literal
.catch(() => callback(false, share))
}

Loading…
Cancel
Save