Skip to content

Commit 258b022

Browse files
author
Walker Leite
committed
fix(component): getDownloadURL should be binded to fileRef
1 parent fac7f25 commit 258b022

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ic-firebase-uploader/ic-firebase-uploader.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ export default {
200200
this.$emit('uploaded', {
201201
id,
202202
fullPath: fileRef.fullPath,
203-
getDownloadURL: fileRef.getDownloadURL
203+
getDownloadURL: fileRef.getDownloadURL.bind(fileRef)
204204
})
205205
})
206206
.catch(err => {

0 commit comments

Comments
 (0)