Explorar o código

Fix tags when loading a recipe without them

Tatiana Inama %!s(int64=6) %!d(string=hai) anos
pai
achega
c00b22829e
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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 || [],
             }
           })
         })