Add QuickLinks based on 'frecency' pattern
This commit is contained in:
@@ -18,11 +18,13 @@ export const load: PageLoad = async ({ url }) => {
|
||||
});
|
||||
}
|
||||
|
||||
if (locId) {
|
||||
const location = LOCATIONS.find(locId);
|
||||
let BoardLocation;
|
||||
|
||||
if (location) {
|
||||
title = location.n || location.t;
|
||||
if (locId) {
|
||||
BoardLocation = LOCATIONS.find(locId);
|
||||
|
||||
if (BoardLocation) {
|
||||
title = BoardLocation.n || BoardLocation.t || 'Live Arr/Dep';
|
||||
} else {
|
||||
error(404, {
|
||||
message: `Location (${locId.toUpperCase()}) not found`,
|
||||
@@ -32,6 +34,6 @@ export const load: PageLoad = async ({ url }) => {
|
||||
}
|
||||
return {
|
||||
title,
|
||||
location
|
||||
BoardLocation
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user