Skip to content

Fix copy UIDs button pasting [object Object] - #146

Draft
xalbd wants to merge 1 commit into
mainfrom
copy-uids-button
Draft

Fix copy UIDs button pasting [object Object]#146
xalbd wants to merge 1 commit into
mainfrom
copy-uids-button

Conversation

@xalbd

@xalbd xalbd commented Jul 29, 2026

Copy link
Copy Markdown
Member

Fixes #138.

Was due to a regression introduced in #132: that PR changed the per-course UID lists from string[] to UidInformation[] and updated the display to format each entry, but CopyButton still received entry[type].join("\n") — which stringified each object as "[object Object]".

#132 changed the per-course UID lists from string[] to UidInformation[]
and updated the <pre> display to format each entry, but CopyButton still
received entry[type].join("\n") — which stringified each object as
"[object Object]".

Extract formatUidLines() and use it for both the clipboard text and the
rendered list so they cannot drift apart again.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
laprogram b0143d3 Commit Preview URL

Branch Preview URL
Jul 29 2026, 11:41 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UID copy button goes [object object] now

1 participant