mirror of
https://github.com/frappe/books.git
synced 2024-11-08 23:00:56 +00:00
fix: undefined TypeError in search
- send path in error.more
This commit is contained in:
parent
0e0c8a001a
commit
1620c49294
@ -216,7 +216,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async selectHighlightedItem() {
|
async selectHighlightedItem() {
|
||||||
console.log('here');
|
|
||||||
if (![-1, this.items.length].includes(this.highlightedIndex)) {
|
if (![-1, this.items.length].includes(this.highlightedIndex)) {
|
||||||
// valid selection
|
// valid selection
|
||||||
let item = this.items[this.highlightedIndex];
|
let item = this.items[this.highlightedIndex];
|
||||||
|
@ -22,6 +22,9 @@ export async function sendError(errorLogObj: ErrorLog) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
errorLogObj.more ??= {};
|
||||||
|
errorLogObj.more!.path ??= router.currentRoute.value.fullPath;
|
||||||
|
|
||||||
const body = {
|
const body = {
|
||||||
error_name: errorLogObj.name,
|
error_name: errorLogObj.name,
|
||||||
message: errorLogObj.message,
|
message: errorLogObj.message,
|
||||||
@ -33,7 +36,7 @@ export async function sendError(errorLogObj: ErrorLog) {
|
|||||||
device_id: fyo.store.deviceId,
|
device_id: fyo.store.deviceId,
|
||||||
open_count: fyo.store.openCount,
|
open_count: fyo.store.openCount,
|
||||||
country_code: fyo.singles.SystemSettings?.countryCode,
|
country_code: fyo.singles.SystemSettings?.countryCode,
|
||||||
more: stringifyCircular(errorLogObj.more ?? {}),
|
more: stringifyCircular(errorLogObj.more!),
|
||||||
};
|
};
|
||||||
|
|
||||||
if (fyo.store.isDevelopment) {
|
if (fyo.store.isDevelopment) {
|
||||||
|
@ -767,7 +767,7 @@ export class Search {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_setKeywords(maps: RawValueMap[], searchable: Searchable) {
|
_setKeywords(maps: RawValueMap[], searchable: Searchable) {
|
||||||
if (!maps.length) {
|
if (!maps?.length) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user