PR feedback
This commit is contained in:
parent
b15399ab81
commit
2eaf2954c1
|
@ -14,6 +14,8 @@
|
|||
export let validation
|
||||
export let onChange
|
||||
|
||||
const context = getContext("context")
|
||||
|
||||
let fieldState
|
||||
let fieldApi
|
||||
let localFiles = []
|
||||
|
@ -83,9 +85,7 @@
|
|||
}
|
||||
|
||||
const upload = async () => {
|
||||
const processedFileKey = processStringSync(key, {
|
||||
[$component.id]: fieldState,
|
||||
})
|
||||
const processedFileKey = processStringSync(key, $context)
|
||||
loading = true
|
||||
try {
|
||||
const res = await API.externalUpload(
|
||||
|
|
Loading…
Reference in New Issue