Fix folder editing and add links updates on file rename

This commit is contained in:
2024-12-17 20:36:51 +01:00
parent 36909c5d66
commit 0abf0b11e6
4 changed files with 11 additions and 9 deletions

View File

@@ -10,7 +10,7 @@ const baseItem = z.object({
navigable: z.boolean(),
private: z.boolean(),
order: z.number().finite(),
content: z.string().optional(),
content: z.string().optional().or(z.null()),
});
export const item: z.ZodType<ProjectItem> = baseItem.extend({
children: z.lazy(() => item.array().optional()),