Skip to content

Commit 8a322ea

Browse files
authored
Add another check to avoid console errors (#1111)
1 parent 46b616d commit 8a322ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/techreport/table.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ function updateTable(id, config, appConfig, apps, data) {
192192

193193
if(column.viz === 'progress-circle' && value) {
194194
const score = DataUtils.getLighthouseScoreCategories(value, appConfig.lighthouse_brackets);
195-
wrapper.classList.add('progress-circle', score.name);
195+
wrapper.classList.add('progress-circle', score?.name);
196196
wrapper.setAttribute('style', `--offset: ${value}%`);
197197
}
198198

0 commit comments

Comments
 (0)