This commit is contained in:
Chris Scoggins
2022-02-01 10:13:58 -06:00
parent 203ff1a6ec
commit c45bf3a994
10 changed files with 159 additions and 173 deletions

View File

@ -131,8 +131,9 @@ export default {
let flat_items = []
let item = undefined
let label = this.form.list_label.split("::")
this.list_label = label[1]
itemlist.forEach((x) => {
item = {}
item = { ...x }
for (const [k, v] of Object.entries(x)) {
if (k == label[0]) {
item["id"] = v.id
@ -144,6 +145,7 @@ export default {
flat_items.push(item)
})
this.first_run = false
return flat_items
},
unflattenItem: function (itemList) {