Browse Source

Fix tags when loading a recipe without them

Tatiana Inama 6 years ago
parent
commit
c00b22829e
1 changed files with 3 additions and 1 deletions
  1. 3 1
      recipes/src/containers/Recipes/Create/index.tsx

+ 3 - 1
recipes/src/containers/Recipes/Create/index.tsx

@@ -46,7 +46,9 @@ class CreateRecipe extends React.Component<any, CreateRecipeState> {
               details: {
                 ...recipe.details,
                 url: this.state.scrapeUrl,
-              }
+              },
+              tags: recipe.tags || [],
+              course: recipe.course || [],
             }
           })
         })