mirror of
https://github.com/frappe/books.git
synced 2024-11-08 14:50: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() {
|
||||
console.log('here');
|
||||
if (![-1, this.items.length].includes(this.highlightedIndex)) {
|
||||
// valid selection
|
||||
let item = this.items[this.highlightedIndex];
|
||||
|
@ -22,6 +22,9 @@ export async function sendError(errorLogObj: ErrorLog) {
|
||||
return;
|
||||
}
|
||||
|
||||
errorLogObj.more ??= {};
|
||||
errorLogObj.more!.path ??= router.currentRoute.value.fullPath;
|
||||
|
||||
const body = {
|
||||
error_name: errorLogObj.name,
|
||||
message: errorLogObj.message,
|
||||
@ -33,7 +36,7 @@ export async function sendError(errorLogObj: ErrorLog) {
|
||||
device_id: fyo.store.deviceId,
|
||||
open_count: fyo.store.openCount,
|
||||
country_code: fyo.singles.SystemSettings?.countryCode,
|
||||
more: stringifyCircular(errorLogObj.more ?? {}),
|
||||
more: stringifyCircular(errorLogObj.more!),
|
||||
};
|
||||
|
||||
if (fyo.store.isDevelopment) {
|
||||
|
@ -767,7 +767,7 @@ export class Search {
|
||||
}
|
||||
|
||||
_setKeywords(maps: RawValueMap[], searchable: Searchable) {
|
||||
if (!maps.length) {
|
||||
if (!maps?.length) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user