Skip to content

Commit d659cbc

Browse files
committed
fix(comments): Support user IDs that are numbers, e.g. "42"
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent 8ab5cf4 commit d659cbc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

apps/comments/src/views/Comments.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,13 @@ export default {
205205
this.done = true
206206
}
207207
208+
// Ensure actor id is a string
209+
for (const comment of comments) {
210+
comment.props.actorId = comment.props.actorId.toString()
211+
}
212+
208213
// Insert results
209-
this.comments.push(...comments)
214+
this.comments = [...this.comments, ...comments]
210215
211216
// Increase offset for next fetch
212217
this.offset += DEFAULT_LIMIT

0 commit comments

Comments
 (0)