This commit is contained in:
kevmodrome 2020-10-15 15:36:20 +02:00
parent 50d9c3c80e
commit cd091efcf7
No known key found for this signature in database
GPG Key ID: E8F9CD141E63BF38
1 changed files with 3 additions and 3 deletions

View File

@ -54,12 +54,12 @@ function attachmentRenderer(constraints, editable) {
},
})
const deleteFile = (event) => {
const newFilesArray = params.value.filter((file) => file !== event.detail)
const deleteFile = event => {
const newFilesArray = params.value.filter(file => file !== event.detail)
params.setValue(newFilesArray)
}
attachmentInstance.$on('delete', deleteFile)
attachmentInstance.$on("delete", deleteFile)
return container
}