You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.
Error
TypeError: this.item is not a function
at VueComponent.getItemText (ArrayField.vue?6144:55)
at _vm._t.value (ArrayField.vue?5725:26)
at Proxy.renderSlot (vue.runtime.esm.js?2b0e:2702)
at eval (ArrayField.vue?5725:13)
at Proxy.renderList (vue.runtime.esm.js?2b0e:2646)
at Proxy.render (ArrayField.vue?5725:8)
at VueComponent.Vue._render (vue.runtime.esm.js?2b0e:3569)
at VueComponent.updateComponent (vue.runtime.esm.js?2b0e:4081)
at Watcher.get (vue.runtime.esm.js?2b0e:4495)
at Watcher.run (vue.runtime.esm.js?2b0e:4570)
Additional context
vuetify-admin/blob/master/packages/admin/src/components/ui/fields/ArrayField.vue on line 55
Need to write this: return this.itemText(item);
The text was updated successfully, but these errors were encountered:
Describe the bug
fields = [
...,
{
source: "fieldName",
type: "array",
attributes: {
chip: true,
select: false,
color: "yellow",
small: true,
column: true,
itemText: (value) => value.name,
},
},
...
];
Error
TypeError: this.item is not a function
at VueComponent.getItemText (ArrayField.vue?6144:55)
at _vm._t.value (ArrayField.vue?5725:26)
at Proxy.renderSlot (vue.runtime.esm.js?2b0e:2702)
at eval (ArrayField.vue?5725:13)
at Proxy.renderList (vue.runtime.esm.js?2b0e:2646)
at Proxy.render (ArrayField.vue?5725:8)
at VueComponent.Vue._render (vue.runtime.esm.js?2b0e:3569)
at VueComponent.updateComponent (vue.runtime.esm.js?2b0e:4081)
at Watcher.get (vue.runtime.esm.js?2b0e:4495)
at Watcher.run (vue.runtime.esm.js?2b0e:4570)
Additional context
vuetify-admin/blob/master/packages/admin/src/components/ui/fields/ArrayField.vue on line 55
Need to write this:
return this.itemText(item);
The text was updated successfully, but these errors were encountered: