Fix: fix possible failing upload (error report postmortem)

This commit is contained in:
Pieter Vander Vennet 2024-12-13 13:47:47 +01:00
parent db058f4025
commit 22c348af27
3 changed files with 16 additions and 12 deletions

View file

@ -750,7 +750,7 @@ export default class SpecialVisualizations {
feature,
labelText: args[1],
image: args[2],
noBlur: noBlur === "true" || noBlur === "yes",
noBlur: noBlur === "true" || noBlur === "yes"
})
},
},
@ -1090,7 +1090,7 @@ export default class SpecialVisualizations {
tags
.map((tags) => tags[args[0]])
.map((commentsStr) => {
const comments: any[] = JSON.parse(commentsStr)
const comments: { text: string }[] = JSON.parse(commentsStr)
const startLoc = Number(args[1] ?? 0)
if (!isNaN(startLoc) && startLoc > 0) {
comments.splice(0, startLoc)