Skip to content

Commit

Permalink
fix: mobile crash
Browse files Browse the repository at this point in the history
  • Loading branch information
tschoffelen committed Sep 7, 2024
1 parent 05b8538 commit 9a5332b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/dashboard/src/routes/functions/columns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export const columns: ColumnDef<FunctionItem>[] = [
}
}

return tags.keys().map((tag) => ({ value: tag, label: tag }));
return tags?.keys?.()?.map((tag) => ({ value: tag, label: tag }));
},
filterFn: (row, id, value) => {
return value.every((v) => row.getValue(id)?.includes(v));
Expand Down
6 changes: 3 additions & 3 deletions packages/dashboard/src/routes/functions/page.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { useMemo } from "react";

import { DataTable } from "@/components/tables/data-table";
import { StatsChart } from "@/components/stats/stats-chart";

import { DataTableFilter } from "@/components/tables/data-table-filter";
import { columns } from "./columns";
import { useData } from "@/lib/api";
import { DataTableFilter } from "@/components/tables/data-table-filter";
import { useMemo } from "react";

const Functions = () => {
const { data: functions } = useData(`functions`, { suspense: true });
Expand Down

0 comments on commit 9a5332b

Please sign in to comment.