fixed properly deep copy meal_type array

This commit is contained in:
vabene1111
2020-06-11 20:22:04 +02:00
parent d4197773bf
commit 8cc0fcaed2

View File

@@ -388,7 +388,7 @@
getPlanTypes: function () {
return this.$http.get("{% url 'api:mealtype-list' %}").then((response) => {
this.meal_types = response.data;
this.meal_types_edit = Array.from(this.meal_types)
this.meal_types_edit = jQuery.extend(true, [], response.data);
for (let mte of this.meal_types_edit) {
this.$set(mte, 'delete', false)
}