Radish alpha
r
rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5
Radicle web interface
Radicle
Git
Fix `new` and `old` fields in code locations
Sebastian Martinez committed 1 year ago
commit 856caf0ec1502858f98db3b826b59ae1492598c8
parent 46d1c21
1 file changed +2 -2
modified http-client/lib/shared.ts
@@ -113,8 +113,8 @@ export type Range = z.infer<typeof rangeSchema>;
export const codeLocationSchema = object({
  commit: string(),
  path: string(),
-
  old: rangeSchema.nullable(),
-
  new: rangeSchema.nullable(),
+
  old: rangeSchema.optional(),
+
  new: rangeSchema.optional(),
});

export type Author = z.infer<typeof authorSchema>;