diff --git a/ayanova/src/components/work-order-item-scheduled-users.vue b/ayanova/src/components/work-order-item-scheduled-users.vue index 464aaebf..e04d477e 100644 --- a/ayanova/src/components/work-order-item-scheduled-users.vue +++ b/ayanova/src/components/work-order-item-scheduled-users.vue @@ -158,6 +158,7 @@ export default { this.activeItemIndex ].deleted = true; this.setDefaultView(); + this.$emit("change"); }, setDefaultView: function() { //if only one record left then display it otherwise just let the datatable show what the user can click on diff --git a/ayanova/src/components/work-order-items.vue b/ayanova/src/components/work-order-items.vue index 8f65af5c..86723934 100644 --- a/ayanova/src/components/work-order-items.vue +++ b/ayanova/src/components/work-order-items.vue @@ -212,6 +212,7 @@ export default { ); //todo: other grandchildren this.setDefaultView(); + this.$emit("change"); }, setDefaultView: function() { //if only one record left then display it otherwise just let the datatable show what the user can click on @@ -256,7 +257,7 @@ export default { }, computed: { isDeleted: function() { - if (this.value.items[activeItemIndex] == null) { + if (this.value.items[this.activeItemIndex] == null) { this.setDefaultView(); return true; }