mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-02 12:49:02 -05:00
fix categories in supermarket edit modal
This commit is contained in:
@@ -80,9 +80,7 @@ export default {
|
||||
} else {
|
||||
arrayValues = [{ id: -1, name: this_value }]
|
||||
}
|
||||
|
||||
console.log(arrayValues)
|
||||
if (this.form?.ordered && this.first_run) {
|
||||
if (this.form?.ordered && this.first_run && arrayValues.length > 0) {
|
||||
return this.flattenItems(arrayValues)
|
||||
} else {
|
||||
return arrayValues
|
||||
|
||||
@@ -125,8 +125,6 @@ export default {
|
||||
entry.date = moment(entry.date).format("YYYY-MM-DD")
|
||||
|
||||
let apiClient = new ApiApiFactory()
|
||||
console.log("etnry", entry)
|
||||
|
||||
apiClient
|
||||
.createMealPlan(entry)
|
||||
.then((result) => {
|
||||
|
||||
Reference in New Issue
Block a user