Fix usage
This commit is contained in:
parent
8624997f4c
commit
06013929e4
|
@ -28,7 +28,9 @@
|
||||||
let loading = false
|
let loading = false
|
||||||
let deleteConfirmationDialog
|
let deleteConfirmationDialog
|
||||||
|
|
||||||
$: defaultName = getSequentialName($snippets, "MySnippet", x => x.name)
|
$: defaultName = getSequentialName($snippets, "MySnippet", {
|
||||||
|
getName: x => x.name,
|
||||||
|
})
|
||||||
$: key = snippet?.name
|
$: key = snippet?.name
|
||||||
$: name = snippet?.name || defaultName
|
$: name = snippet?.name || defaultName
|
||||||
$: code = snippet?.code ? encodeJSBinding(snippet.code) : ""
|
$: code = snippet?.code ? encodeJSBinding(snippet.code) : ""
|
||||||
|
|
Loading…
Reference in New Issue