Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-05-28 15:42:04 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-05-28 15:42:04 -0700
commitabc8b02a9c73e68f435d8971b2ef0e1970f42212 (patch)
treea3660f4791baf571c6c4f0822f896aa5b171631b /src/modules/record_sheet.js
parent528a370ddcf9bc63b0b5ec757ee2ac97c505131e (diff)
WIP: select counter test
Diffstat (limited to 'src/modules/record_sheet.js')
-rw-r--r--src/modules/record_sheet.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/record_sheet.js b/src/modules/record_sheet.js
index 61cea98..2865309 100644
--- a/src/modules/record_sheet.js
+++ b/src/modules/record_sheet.js
@@ -179,7 +179,7 @@ export function start(startLoc, units) {
for (const affiliation in forces) {
const container = document.querySelector(`#${affiliation}-record`);
const records = container.querySelector('.records');
- const name = startLoc.dataset[`${affiliation}Name`];
+ const name = startLoc?.dataset[`${affiliation}Name`];
if (name) {
container.querySelector('.name').textContent = name;