add category label to filtered custom field results
This commit is contained in:
@@ -115,7 +115,7 @@ export function formatCustomFieldOptions(data, flat = false) {
|
||||
const tmp = [];
|
||||
data.forEach(custom_field => {
|
||||
if (custom_field.model === cat.toLowerCase()) {
|
||||
tmp.push({ label: custom_field.name, value: custom_field.id })
|
||||
tmp.push({ label: custom_field.name, value: custom_field.id, cat: cat })
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user