Skip to content

Commit

Permalink
fix: Handle null/deactivated locations in UI
Browse files Browse the repository at this point in the history
  • Loading branch information
pettermachado committed Nov 12, 2024
1 parent 80d5fc9 commit 73dbf5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/components/columns/zone.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const columns: ColumnDef<ZoneRow>[] = [
{
id: "location",
header: "Location",
accessorFn: ({ zone }) => zone?.location.name,
accessorFn: ({ zone }) => zone?.location?.name,
meta: {
filter: "select",
},
Expand Down
2 changes: 1 addition & 1 deletion app/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export type Account = {
export type Zone = {
id: string;
name: string;
location: Location;
location: Location | null;
account: { id: string };
};

Expand Down

0 comments on commit 73dbf5f

Please sign in to comment.