Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
JanAckermann committed Jul 8, 2022
1 parent 5b96412 commit c78742a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/web-app-files/src/helpers/share/link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,13 @@ export const createQuicklink = async (args: CreateQuicklink): Promise<Share> =>
// needs check for enforced password for default role (viewer?)
// and concept to what happens if it is enforced

if (resource.isReceivedShare()) {
params.spaceRef = resource.id
}
params.spaceRef = resource.fileId || resource.id

const link = await store.dispatch('Files/addLink', {
path: resource.path,
client: clientService.owncloudSdk,
params,
storageId: resource.storageId
storageId: resource.fileId || resource.id
})

copyToClipboard(link.url)
Expand Down

0 comments on commit c78742a

Please sign in to comment.