Skip to content

Commit

Permalink
Search by uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
sergesoroka committed May 28, 2024
1 parent be01f70 commit 270edc5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/DataTable/TemplateTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -75,6 +80,11 @@ export default function TemplateTable({ data }) {
globalFilter: filtering,
rowSelection,
},
initialState: {
columnVisibility: {
uuid: false,
},
},
});

const setIdShosen = useSetIsShosen();
Expand Down Expand Up @@ -110,6 +120,7 @@ export default function TemplateTable({ data }) {
</tr>
))}
</thead>
{/* {console.log(table.getRowModel().rows[0]?.original?.uuid)} */}
{table.getRowModel().rows?.length ? (
table.getRowModel().rows.map((row) => (
<tbody>
Expand Down

0 comments on commit 270edc5

Please sign in to comment.