fix: without machine will crash workflow page

This commit is contained in:
BennyKok
2024-01-13 00:36:47 +08:00
parent c4c64a5f04
commit f5991a1bf8
3 changed files with 17 additions and 14 deletions
+3 -4
View File
@@ -5,7 +5,6 @@ import { Button } from "@/components/ui/button";
import { Checkbox } from "@/components/ui/checkbox";
import {
DropdownMenu,
DropdownMenuCheckboxItem,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuLabel,
@@ -36,7 +35,7 @@ import {
getSortedRowModel,
useReactTable,
} from "@tanstack/react-table";
import { ArrowUpDown, ChevronDown, MoreHorizontal } from "lucide-react";
import { ArrowUpDown, MoreHorizontal } from "lucide-react";
import * as React from "react";
export type Payment = {
@@ -203,7 +202,7 @@ export function WorkflowList({ data }: { data: Payment[] }) {
}
className="max-w-sm"
/>
<DropdownMenu>
{/* <DropdownMenu>
<DropdownMenuTrigger asChild>
<Button variant="outline" className="ml-auto">
Columns <ChevronDown className="ml-2 h-4 w-4" />
@@ -228,7 +227,7 @@ export function WorkflowList({ data }: { data: Payment[] }) {
);
})}
</DropdownMenuContent>
</DropdownMenu>
</DropdownMenu> */}
</div>
<ScrollArea className="h-full w-full rounded-md border">
<Table>