File tree Expand file tree Collapse file tree
apps/web/src/pages/dashboard/messages Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -72,8 +72,8 @@ export const columns = ({
7272 } ,
7373 {
7474 id : "messageId" ,
75- header : "ID" ,
76- cell : ( { row } ) => < MessageIdCell messageId = { row . original . id } /> ,
75+ header : "Message ID" ,
76+ cell : ( { row } ) => < MessageIdCell messageId = { row . original . messageId } /> ,
7777 } ,
7878 {
7979 id : "actions" ,
Original file line number Diff line number Diff line change @@ -9,10 +9,16 @@ import {
99} from "@repo/ui"
1010import { Copy , Hash } from "lucide-react"
1111
12- export function MessageIdCell ( { messageId } : { messageId : string } ) {
12+ export function MessageIdCell ( { messageId } : { messageId : string | null } ) {
1313 const copyToClipboard = ( ) => {
14- navigator . clipboard . writeText ( messageId )
15- toast . success ( "Message ID copied to clipboard" )
14+ if ( messageId ) {
15+ navigator . clipboard . writeText ( messageId )
16+ toast . success ( "Message ID copied to clipboard" )
17+ }
18+ }
19+
20+ if ( ! messageId ) {
21+ return < span className = "text-muted-foreground text-sm" > -</ span >
1622 }
1723
1824 return (
Original file line number Diff line number Diff line change 11{
2- "version" : " 0.9.20-beta.5 " ,
2+ "version" : " 0.9.20-beta.6 " ,
33 "name" : " letterspace" ,
44 "private" : true ,
55 "scripts" : {
You can’t perform that action at this time.
0 commit comments