mirror of
https://github.com/aljazceru/meshcore-web.git
synced 2025-12-18 16:44:21 +01:00
payload type and route type can be null
This commit is contained in:
@@ -206,8 +206,8 @@ export default {
|
|||||||
return this.logs.filter((log) => {
|
return this.logs.filter((log) => {
|
||||||
const search = this.search.toLowerCase();
|
const search = this.search.toLowerCase();
|
||||||
const matchesPacketHash = log.packet_hash.toLowerCase().includes(search);
|
const matchesPacketHash = log.packet_hash.toLowerCase().includes(search);
|
||||||
const matchesPayloadType = log.packet.getPayloadTypeString().toLowerCase().includes(search);
|
const matchesPayloadType = log.packet.getPayloadTypeString()?.toLowerCase()?.includes(search) === true;
|
||||||
const matchesRouteType = log.packet.getRouteTypeString().toLowerCase().includes(search);
|
const matchesRouteType = log.packet.getRouteTypeString()?.toLowerCase()?.includes(search) === true;
|
||||||
return matchesPacketHash || matchesPayloadType || matchesRouteType;
|
return matchesPacketHash || matchesPayloadType || matchesRouteType;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user