This commit is contained in:
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 9.9 KiB |
@@ -273,10 +273,16 @@ export default {
|
||||
let item = res.data.searchResults[i];
|
||||
if (item.type != lastType) {
|
||||
//change of type, set subheader props
|
||||
let tsub = window.$gz._.find(vm.selectLists.objectTypes, [
|
||||
"id",
|
||||
item.type
|
||||
]);
|
||||
//de-lodash
|
||||
// let tsub = window.$gz._.find(vm.selectLists.objectTypes, [
|
||||
// "id",
|
||||
// item.type
|
||||
// ]);
|
||||
|
||||
let tsub = vm.selectLists.objectTypes.find(
|
||||
z => z.id == item.type
|
||||
);
|
||||
|
||||
if (tsub != null) {
|
||||
item.subheader = tsub.name;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user