mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-20 03:34:06 +00:00
Finalize Typescript restructure
This commit is contained in:
@@ -157,12 +157,12 @@ async function setInitialFields(): Promise<void> {
|
||||
const res = await globalStore.fetchPlaceholders(data as { key: string })
|
||||
|
||||
res.placeholders.forEach((placeholder) => {
|
||||
const found = allFields.value.find((field) => field.name === placeholder.value)
|
||||
const found = allFields.value.find((field) => field.name === placeholder.name)
|
||||
if (!found) return
|
||||
|
||||
selectedFields.value.push({
|
||||
...found,
|
||||
value: placeholder.value ?? '',
|
||||
value: placeholder.value ?? found.value,
|
||||
id: Guid.raw(),
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user