1
0
Fork 0
mirror of synced 2024-09-09 06:01:08 +12:00
This commit is contained in:
kevmodrome 2020-10-15 15:36:20 +02:00
parent 9f33cf4e6e
commit 86bbf252b3

View file

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