mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
adding conditional to only emit update if the history ID changes
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user