From 57330089a654cc8926e049eeb4a6dc89bd012e49 Mon Sep 17 00:00:00 2001
From: Piotr Gawron <p.gawron@atcomp.pl>
Date: Fri, 26 Apr 2024 13:42:04 +0200
Subject: [PATCH] disease and organism are optional

---
 src/models/projectSchema.ts | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/models/projectSchema.ts b/src/models/projectSchema.ts
index 611b93a7..d3eeeb2a 100644
--- a/src/models/projectSchema.ts
+++ b/src/models/projectSchema.ts
@@ -5,10 +5,10 @@ import { overviewImageView } from './overviewImageView';
 
 export const projectSchema = z.object({
   version: z.string(),
-  disease,
-  diseaseName: z.string(),
-  organism,
-  organismName: z.string(),
+  disease: disease.nullable(),
+  diseaseName: z.string().nullable(),
+  organism: organism.nullable(),
+  organismName: z.string().nullable(),
   status: z.string(),
   directory: z.string(),
   progress: z.number(),
-- 
GitLab