From 4a7315d74e5578dec4139afa44e6157056f8cdbe Mon Sep 17 00:00:00 2001 From: Petter Machado Date: Tue, 12 Nov 2024 10:21:19 +0100 Subject: [PATCH] fix: Location can be null (#18) * fix: Location can be null * fix(ci): Add typecheck * tmp: Test typecheck * fix: Typecheck after build * Revert "tmp: Test typecheck" This reverts commit 2397979a90fec3b384029e7354a6a9d45bb947e8. --- .github/workflows/ci.yaml | 3 +++ app/components/columns/action.tsx | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e1a836e..349fa7c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -44,3 +44,6 @@ jobs: - name: Build Server run: pnpm build:server + + - name: Typecheck + run: pnpm typecheck diff --git a/app/components/columns/action.tsx b/app/components/columns/action.tsx index a7ab473..3b07ee9 100644 --- a/app/components/columns/action.tsx +++ b/app/components/columns/action.tsx @@ -82,7 +82,7 @@ export const columns: ColumnDef[] = [ { id: "location", header: "Location", - accessorFn: ({ zone }) => zone?.location.name, + accessorFn: ({ zone }) => zone?.location?.name, }, { id: "account",