Removed attachment delete behaviour as it has been removed from the frontend entirely
This commit is contained in:
parent
a0ccc09be9
commit
ce176496d2
|
@ -54,24 +54,10 @@
|
|||
}
|
||||
|
||||
const deleteSignature = async () => {
|
||||
const deleteRequest = fieldState?.value.map(item => item.key)
|
||||
|
||||
const changed = fieldApi.setValue([])
|
||||
if (onChange && changed) {
|
||||
onChange({ value: [] })
|
||||
}
|
||||
|
||||
try {
|
||||
await API.deleteAttachments({
|
||||
keys: deleteRequest,
|
||||
tableId: formContext?.dataSource?.tableId,
|
||||
})
|
||||
} catch (error) {
|
||||
notificationStore.actions.error(
|
||||
`There was a problem deleting your signature`
|
||||
)
|
||||
console.error(error)
|
||||
}
|
||||
}
|
||||
|
||||
$: currentTheme = $context?.device?.theme
|
||||
|
|
Loading…
Reference in New Issue