Lint
This commit is contained in:
parent
203d6484ea
commit
7f9dc42e31
|
@ -1,7 +1,6 @@
|
|||
<script>
|
||||
import { onMount } from "svelte"
|
||||
import { onMount, createEventDispatcher } from "svelte"
|
||||
import Icon from "../../Icon/Icon.svelte"
|
||||
import { createEventDispatcher } from "svelte"
|
||||
|
||||
const dispatch = createEventDispatcher()
|
||||
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
const { API, notifications, props } = getContext("grid")
|
||||
|
||||
let isOpen = false
|
||||
let editing = false
|
||||
let signature
|
||||
let modal
|
||||
|
||||
|
@ -48,7 +47,7 @@
|
|||
const deleteRequest = value.map(item => item.key)
|
||||
try {
|
||||
await API.deleteBuilderAttachments(deleteRequest)
|
||||
} catch (e) {
|
||||
} catch (error) {
|
||||
$notifications.error(error.message || "Failed to delete signature")
|
||||
}
|
||||
}
|
||||
|
@ -63,7 +62,7 @@
|
|||
const uploadReq = await API.uploadBuilderAttachment(attachRequest)
|
||||
onChange(uploadReq)
|
||||
} catch (error) {
|
||||
$notifications.error(error.message || "Failed to upload attachment")
|
||||
$notifications.error(error.message || "Failed to save signature")
|
||||
return []
|
||||
}
|
||||
}
|
||||
|
@ -117,7 +116,6 @@
|
|||
<ActionButton
|
||||
fullWidth
|
||||
on:click={() => {
|
||||
editing = true
|
||||
modal.show()
|
||||
}}
|
||||
>
|
||||
|
|
Loading…
Reference in New Issue