Skip to content

Commit 960663d

Browse files
fix: location.text may be undefined
1 parent 6306ef3 commit 960663d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98955,7 +98955,7 @@ var __webpack_exports__ = {}
9895598955
}
9895698956
}
9895798957
} else {
98958-
event.location = location.text
98958+
event.location = location.text ? location.text : ''
9895998959
}
9896098960

9896198961
events.push(event)

src/fetch-issues.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export async function fetchIssues(
141141
}
142142
}
143143
} else {
144-
event.location = location.text
144+
event.location = location.text ? location.text : ''
145145
}
146146

147147
events.push(event)

0 commit comments

Comments
 (0)