Selaa lähdekoodia

Make _id property optional

Tatiana Inama 7 vuotta sitten
vanhempi
commit
edb8383502
1 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  1. 1 2
      recipes/src/types/recipes.ts

+ 1 - 2
recipes/src/types/recipes.ts

@@ -36,7 +36,6 @@ export const _subRecipe: SubRecipe = {
 };
 
 export const _recipe: Recipe = {
-  _id: '',
   author: {
     name: '',
     website: '',
@@ -108,7 +107,7 @@ export interface Suggestion {
 }
 
 export default interface Recipe {
-  _id: string,
+  _id?: string,
   author: Author,
   details: Details,
   ingredients: SubRecipe[],