clear selection when Sources is mounted

This commit is contained in:
Settel 2021-08-30 08:10:50 +02:00
parent 021eca3fd6
commit adfc3c0a1a
2 changed files with 3 additions and 1 deletions

View File

@ -17,6 +17,9 @@
<script> <script>
export default { export default {
props: ['sources'], props: ['sources'],
mounted() {
this.$store.commit('selection/clearSelection')
},
} }
</script> </script>

View File

@ -18,7 +18,6 @@
export default { export default {
async mounted() { async mounted() {
await this.$engine.start() await this.$engine.start()
this.$store.commit('selection/clearSelection')
}, },
async beforeDestroy() { async beforeDestroy() {
await this.$engine.stop() await this.$engine.stop()