Skip to content

Commit

Permalink
Merge pull request #9835 from jacob-nv/copy-action
Browse files Browse the repository at this point in the history
check for current folder not being nullable in paste action
  • Loading branch information
JammingBen authored Oct 23, 2023
2 parents 00edb24 + 58064d6 commit bf1194a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export const useFileActionsPaste = ({ store }: { store?: Store<any> } = {}) => {
}

const currentFolder = store.getters['Files/currentFolder']
if (isLocationPublicActive(router, 'files-public-link')) {
if (isLocationPublicActive(router, 'files-public-link') && currentFolder) {
return currentFolder.canCreate()
}

Expand Down

0 comments on commit bf1194a

Please sign in to comment.