diff --git a/ui/src/views/template/index.vue b/ui/src/views/template/index.vue index 8f9f30c18..6a8c6a95b 100644 --- a/ui/src/views/template/index.vue +++ b/ui/src/views/template/index.vue @@ -112,7 +112,7 @@ const model_list = ref>([]) const updateModelById = (model_id: string, model: Model) => { model_list.value - .filter((m) => (m.id = model_id)) + .filter((m) => m.id == model_id) .forEach((m) => { m.status = model.status })