Removed attachment delete behaviour as it has been removed from the frontend entirely

This commit is contained in:
Dean 2024-04-18 11:21:37 +01:00
parent a0ccc09be9
commit ce176496d2
1 changed files with 0 additions and 14 deletions

View File

@ -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