Close details sidebar if edited chore ID does not exist
1 files changed, 3 insertions(+), 0 deletions(-) M src/views/ChoreDetailsSidebar.vue
M src/views/ChoreDetailsSidebar.vue => src/views/ChoreDetailsSidebar.vue +3 -0
@@ 223,6 223,9 @@ export default { }; } const chore = this.store.choreById(Number(this.$props.choreId)); + if (chore === undefined) { + this.closeSideBar(); + } return chore || {repeat:'s:1:-', due: new Date(), id:-1}; }, due: {