chore: snapshot before performance optimization
This commit is contained in:
@@ -22,7 +22,7 @@ async function checkLabels() {
|
||||
allNotes.forEach(note => {
|
||||
if (note.labels) {
|
||||
try {
|
||||
const parsed = JSON.parse(note.labels)
|
||||
const parsed = Array.isArray(note.labels) ? note.labels : []
|
||||
if (Array.isArray(parsed)) {
|
||||
parsed.forEach(l => labelsInNotes.add(l))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user