Skip to content

Commit b1754b0

Browse files
committed
fix annotations arrays in plausible
1 parent ef5499e commit b1754b0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

client/src/ts/plausible.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ function corpusParams(corpus: CorpusMetadata): Record<string, number | string |
3030
}
3131

3232
function docParams(doc: DocumentMetadata): Record<string, string> {
33-
return { format: doc.format, annotations: doc.annotations.join() }
33+
return { format: doc.format, annotations: Object.keys(doc.annotations).join() }
3434
}
3535

3636
function jobParams(job: Job, type: JobType): Record<string, any> {
3737
return {
3838
[`${type}-id`]: job.tagger.id,
39-
[`${type}-annotations`]: job.tagger.annotations.map((a) => a.annotation),
39+
[`${type}-annotations`]: job.tagger.annotations.map((a) => a.annotation).join(),
4040
}
4141
}
4242

0 commit comments

Comments
 (0)