diff --git a/src/DataTable/TemplateTable.tsx b/src/DataTable/TemplateTable.tsx index 11c28ed..a7d490c 100644 --- a/src/DataTable/TemplateTable.tsx +++ b/src/DataTable/TemplateTable.tsx @@ -14,6 +14,11 @@ import { useSetIsShosen } from "../store/store"; import { ontLookup } from "./CategoryLookUp"; const columns = [ + { + accessorKey: "uuid", + header: "UUID", + cell: (props) => <>{props.getValue()}, + }, { accessorKey: "template_name", header: "Template Name", @@ -75,6 +80,11 @@ export default function TemplateTable({ data }) { globalFilter: filtering, rowSelection, }, + initialState: { + columnVisibility: { + uuid: false, + }, + }, }); const setIdShosen = useSetIsShosen(); @@ -110,6 +120,7 @@ export default function TemplateTable({ data }) { ))} + {/* {console.log(table.getRowModel().rows[0]?.original?.uuid)} */} {table.getRowModel().rows?.length ? ( table.getRowModel().rows.map((row) => (