Skip to content

Commit

Permalink
feat(office): default descriptions for reusable office and offices fi…
Browse files Browse the repository at this point in the history
…elds
  • Loading branch information
mathiazom committed Sep 2, 2024
1 parent c193060 commit 642e9af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions studio/schemas/objects/office.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { officeId } from "../documents/office";
const office = defineField({
name: "office",
title: "Office",
description: "Reference to a company office",
type: "reference",
to: [{ type: officeId }],
});
Expand Down
1 change: 1 addition & 0 deletions studio/schemas/objects/offices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import office from "./office";
const offices = defineField({
name: "offices",
title: "Offices",
description: "List of company offices",
type: "array",
of: [office],
validation: (Rule) => Rule.required().min(1).unique(),
Expand Down

0 comments on commit 642e9af

Please sign in to comment.