Преглед изворни кода

Fix tags when loading a recipe without them

Tatiana Inama пре 6 година
родитељ
комит
c00b22829e
1 измењених фајлова са 3 додато и 1 уклоњено
  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 || [],
             }
           })
         })