Use non-numeric user ID in JS

This commit is contained in:
Kevin McConnell
2025-11-17 17:00:58 +00:00
parent 0f7b1312eb
commit f378f7c122
2 changed files with 2 additions and 2 deletions
@@ -3,7 +3,7 @@ import { Controller } from "@hotwired/stimulus"
export default class extends Controller {
static classes = [ "deleteable", "reveal", "perform" ]
static targets = [ "button", "content" ]
static values = { reacterId: Number }
static values = { reacterId: String }
connect() {
if (this.#currentUserIsReacter) {
+1 -1
View File
@@ -3,7 +3,7 @@ class Current {
const currentUserId = this.#extractContentFromMetaTag("current-user-id")
if (currentUserId) {
return { id: parseInt(currentUserId) }
return { id: currentUserId }
}
}