openAIP / openaip

Public issue tracker of www.openaip.net.
39 stars 3 forks source link

TypeError: Cannot read properties of null (reading 'slice') #330

Closed sentry-io[bot] closed 3 months ago

sentry-io[bot] commented 3 months ago

Sentry Issue: OPENAIP-WEBAPP-3D

TypeError: Cannot read properties of null (reading 'slice')
  File "app:///chunks/NearestAirportsInfoBox-DPWYYRPI.js", line 150, in <anonymous>
    sunrise = lon ? `${getSunrise(lon, lat).slice(0, -4)} UTC` : "";
  File "app:///chunks/ssr-XjdUq6Mi.js", line 255, in Object.$$render
    const html = fn(result, props, bindings, slots);
  File "app:///chunks/_page.svelte-iGOnjxzE.js", line 341, in <anonymous>
    )} ${validate_component(LocationInfoBox, "LocationInfoBox").$$render(
  File "app:///chunks/ssr-XjdUq6Mi.js", line 255, in Object.$$render
    const html = fn(result, props, bindings, slots);
  File "app:///index.js", line 143, in Object.default
    )}` : `${validate_component(constructors[2] || missing_component, "svelte:component").$$render(
...
(5 additional frame(s) were not displayed)
reskume commented 3 months ago

Refined checks for polar day/night.