kevmodrome
6 years ago
No known key found for this signature in database
GPG Key ID: E8F9CD141E63BF38
1 changed files with
3 additions and
3 deletions
-
packages/standard-components/src/DataGrid/customRenderer.js
|
|
|
@ -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 |
|
|
|
} |
|
|
|
|