Fixed bug with clear search

This commit is contained in:
2023-08-19 17:13:23 +02:00
parent b6f94794fe
commit 62c45c9a8c
2 changed files with 5 additions and 3 deletions

5
.idea/codeStyles/codeStyleConfig.xml generated Normal file
View File

@@ -0,0 +1,5 @@
<component name="ProjectCodeStyleConfiguration">
<state>
<option name="PREFERRED_PROJECT_CODE_STYLE" value="Default" />
</state>
</component>

View File

@@ -29,7 +29,6 @@
<script>
import { mapState } from "vuex";
import arne from "../../arne.js";
import InspirationWindow from "../items/InspirationWindow.vue";
export default {
data() {
return {
@@ -52,7 +51,6 @@ export default {
methods: {
async randomizeTrack() {
console.log("Randomizing track");
InspirationWindow.methods.clearSearch();
/* Prevents anyone from changing the winning score after the round has started */
if (this.roundStarted === false) {
this.$store.dispatch("setRoundStarted", true);
@@ -76,7 +74,6 @@ export default {
}
//Update the source file for the media player (binded property to Audio tag in the template)
this.currentTrackSrcFile = window.URL.createObjectURL(copyOfPlaylist[0]);
/* this.$nextTick(() => {}); */
if (!trackAddedToQue) {
if (this.addPlayed) {
await this.APIaddPlayed();