Skip to content

Commit

Permalink
Remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
JammingBen committed Sep 7, 2022
1 parent b179bcf commit dc519d5
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,33 +13,28 @@ export function useIncomingParentShare() {
const isSharedWithMeLocation = useActiveLocation(isLocationSharesActive, 'files-shares-with-me')

const loadIncomingParentShare = useTask(function* (signal, resource) {
console.log('resource', resource)
let parentShare
for (const shares of Object.values(unref(sharesTree)) as any) {
parentShare = shares.find((s) => s.incoming)
if (parentShare) {
console.log('via incoming:', parentShare)
incomingParentShare.value = parentShare
return
}
}

if (unref(isSharedWithMeLocation)) {
incomingParentShare.value = resource.share
console.log('via share obj', incomingParentShare.value)
return
}

if (resource.shareId) {
const parentShare = yield clientService.owncloudSdk.shares.getShare(resource.shareId)
if (parentShare) {
incomingParentShare.value = buildShare(parentShare.shareInfo, resource, true)
console.log('via share id', incomingParentShare.value)
return
}
}

console.log('No parent share')
incomingParentShare.value = null
})

Expand Down

0 comments on commit dc519d5

Please sign in to comment.