Bugfix search page (Band)

This commit is contained in:
2024-12-21 21:05:06 +01:00
parent 6f6efa5886
commit 57d35a01ba
5 changed files with 1459 additions and 39 deletions

View File

@@ -49,7 +49,7 @@ export const useSearchStore = defineStore("searchStore", {
// Check for exercise solution
if (result.data.length != 0) {
if (this.searchTerm.toUpperCase().includes("SELECT")) {
// Exercise 2.1
if (result.data[0].type != undefined && result.data[0].type == "table") {
exerciseStore.solveExercise(2, 1)
@@ -92,6 +92,7 @@ export const useSearchStore = defineStore("searchStore", {
}
else {
// Normal behaviour
this.bands = result.data
}
})