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];
|
let item = res.data.searchResults[i];
|
||||||
if (item.type != lastType) {
|
if (item.type != lastType) {
|
||||||
//change of type, set subheader props
|
//change of type, set subheader props
|
||||||
let tsub = window.$gz._.find(vm.selectLists.objectTypes, [
|
//de-lodash
|
||||||
"id",
|
// let tsub = window.$gz._.find(vm.selectLists.objectTypes, [
|
||||||
item.type
|
// "id",
|
||||||
]);
|
// item.type
|
||||||
|
// ]);
|
||||||
|
|
||||||
|
let tsub = vm.selectLists.objectTypes.find(
|
||||||
|
z => z.id == item.type
|
||||||
|
);
|
||||||
|
|
||||||
if (tsub != null) {
|
if (tsub != null) {
|
||||||
item.subheader = tsub.name;
|
item.subheader = tsub.name;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user