diff --git a/resources/js/views/form/Conditions.vue b/resources/js/views/form/Conditions.vue index 6f0dcfe7..3fb2ba54 100644 --- a/resources/js/views/form/Conditions.vue +++ b/resources/js/views/form/Conditions.vue @@ -100,7 +100,7 @@ function changeMode(mode) { function update(index, key, value) { const inner = {...props.modelValue}; if (key === 'comparator') { - var old = inner.ifs[index]; + const old = inner.ifs[index]; inner.ifs[index] = { field: old.field, comparator: value, @@ -108,7 +108,6 @@ function update(index, key, value) { }; } if (key === 'field') { - var old = inner.ifs[index]; inner.ifs[index] = { field: value, comparator: null, diff --git a/resources/js/views/form/Index.vue b/resources/js/views/form/Index.vue index 62c05383..073d81d0 100644 --- a/resources/js/views/form/Index.vue +++ b/resources/js/views/form/Index.vue @@ -80,13 +80,13 @@
-