Skip to content

Commit 576f331

Browse files
committed
bug fix and version bump
- Fix a bug if a webhook record isn't found - Version bump
1 parent 8c1cb36 commit 576f331

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "reactmap",
3-
"version": "1.3.3",
3+
"version": "1.3.4",
44
"description": "React based frontend map.",
55
"main": "ReactMap.mjs",
66
"author": "TurtIeSocks <[email protected]>",

src/components/WebhookQuery.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default function WebhookQuery({
3030
return data ? (
3131
<Container
3232
location={
33-
data[`${lowercase}Single`]
33+
data[`${lowercase}Single`]?.lat && data[`${lowercase}Single`]?.lon
3434
? [data[`${lowercase}Single`].lat, data[`${lowercase}Single`].lon]
3535
: location
3636
}

0 commit comments

Comments
 (0)