mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-30 16:33:16 +00:00
fix(ci): the second round of gates after the places changes
- index.css stays at its size: the map canvas colour moves to its own stylesheet. - The rating badge on map markers takes its amber and white from a class in ratingBadge.css instead of inline literals; the theme entry drops with it. - Strict mode: the identity a link joins is resolved without a widened union, the description of an entry's origins is string or undefined, and the map search rows are typed. - knip: PLACE_NAME_ATTR is module private, the linked-by enum names the values the service writes, and the unlink contract is its own described schema rather than a second name for the use schema. - The duplicates hook test reads toasts through a module mock instead of the window hook; react-hooks/refs is lowered to the count the run measured. - Tests follow the rename to Places and the list icon on an edit.
This commit is contained in:
@@ -61,5 +61,6 @@ export async function searchMapSpots(query: string, lang?: string): Promise<MapM
|
||||
const q = query.trim();
|
||||
if (!q || isEffectivelyOffline()) return [];
|
||||
const res = lang ? await mapsApi.search(q, lang) : await mapsApi.search(q);
|
||||
return (res?.places ?? []).map((row) => toMatch(row, q)).filter((m): m is MapMatch => m !== null);
|
||||
const rows: readonly unknown[] = res?.places ?? [];
|
||||
return rows.map((row: unknown) => toMatch(row, q)).filter((m: MapMatch | null): m is MapMatch => m !== null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user