Skip to content

Commit 74f9036

Browse files
committed
fix: user id is now a string
1 parent bf184ac commit 74f9036

2 files changed

Lines changed: 28 additions & 1 deletion

File tree

src/components/AdvancedComponents/org-chart-component/OrgChart.stories.tsx

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,33 @@ export const MediumTeam: Story = {
8484
},
8585
}
8686

87+
export const SinglePersonUser: Story = {
88+
args: {
89+
users: [{
90+
id: 1,
91+
name: 'Test user - do not delete',
92+
email: 'test@test.com',
93+
jobRole: null,
94+
manager: null,
95+
about: null,
96+
profilePicture: null,
97+
holidaysRemaining: 25,
98+
startingHolidays: 25,
99+
dateOfBirth: null,
100+
joinDate: null,
101+
linkedIn: null,
102+
assets: [],
103+
role: 'admin',
104+
updatedAt: '2025-12-29T17:19:00.709Z',
105+
createdAt: '2025-12-08T18:36:20.346Z',
106+
enableAPIKey: null,
107+
apiKey: null
108+
}],
109+
expandable: false,
110+
initiallyExpanded: true,
111+
},
112+
}
113+
87114
/**
88115
* Single person organization (e.g., solo founder or CEO).
89116
* Demonstrates the component with minimal data.

src/payload-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ export interface Post {
682682
* via the `definition` "users".
683683
*/
684684
export interface User {
685-
id: number;
685+
id: string;
686686
name?: string | null;
687687
email: string;
688688
jobRole?: ('C1' | 'C2' | 'C3' | 'SC1' | 'SC2' | 'M' | 'SM' | 'P') | null;

0 commit comments

Comments
 (0)