Procházet zdrojové kódy

Make _id property optional

Tatiana Inama před 7 roky
rodič
revize
edb8383502
1 změnil soubory, kde provedl 1 přidání a 2 odebrání
  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[],