1
0
mirror of https://github.com/alice-lg/alice-lg.git synced 2024-05-11 05:55:03 +00:00

Fixes the spinny wheel when searching for a filtered prefix that doesn't contain as-paths.

This commit is contained in:
nicko170
2022-02-08 23:03:31 +11:00
committed by GitHub
parent 454b8de596
commit 02b828dfa6

View File

@ -53,7 +53,11 @@ export const ColNetwork = function(props) {
// Special AS Path Widget
export const ColAsPath = function(props) {
const asns = _lookup(props.route, "bgp.as_path");
let asns = _lookup(props.route, "bgp.as_path");
if(!asns){
asns = [];
}
const baseUrl = "https://irrexplorer.nlnog.net/asn/AS"
let asnLinks = asns.map((asn, i) => {