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