adding conditional to only emit update if the history ID changes

This commit is contained in:
Assunta DeSanto
2022-08-23 15:01:43 -04:00
parent b4d2241e78
commit 083ca7270d
@@ -84,9 +84,11 @@ export default {
},
},
watch: {
history() {
// Send up event closing out selected collection on history change.
this.$emit("update:selected-collections", []);
history(newHistory, oldHistory) {
if (newHistory.id != oldHistory.id) {
// Send up event closing out selected collection on history change.
this.$emit("update:selected-collections", []);
}
},
},
methods: {