fix deal close

This commit is contained in:
7181128 2026-06-10 17:04:32 +03:00
parent bef78f8afb
commit 581cadbd22

View File

@ -555,9 +555,9 @@ var ac = new Vue({
for (var i in res) {
if (i == 'next_step_select') {
ac.nextStepSelect = res.next_step_select;
if (ac.nextStepSelect.id.id) {
if (ac.nextStepSelect && ac.nextStepSelect.id && ac.nextStepSelect.id.id) {
//if (ac.nextStepSelect.name === undefined) {
let temp_next = ac.step.arr_next_steps.find((el, idx) => el.id.id == ac.nextStepSelect.id.id);
let temp_next = ac.step.arr_next_steps.find((el, idx) => el.id && ac.nextStepSelect && ac.nextStepSelect.id && el.id.id == ac.nextStepSelect.id.id);
//console.log(temp_next);
if (temp_next === undefined) {
ac.nextStepSelect = '';