diff --git a/packages/client/src/components/app/forms/SignatureField.svelte b/packages/client/src/components/app/forms/SignatureField.svelte index 38e73402b8..72d4ebe94f 100644 --- a/packages/client/src/components/app/forms/SignatureField.svelte +++ b/packages/client/src/components/app/forms/SignatureField.svelte @@ -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