Check families and levels before set

This commit is contained in:
oguzhankoral
2024-01-22 16:16:50 +03:00
parent 2152f1c90e
commit bc3f58a600
+6 -2
View File
@@ -617,10 +617,14 @@ export default {
}
if (this.selectedMethod){
if (this.selectedFamily === null || this.selectedFamily === undefined){
this.selectedFamily = this.inputFamilies[0]
if (this.inputFamilies[0]){
this.selectedFamily = this.inputFamilies[0]
}
}
if (this.selectedLevel === null || this.selectedLevel === undefined){
this.selectedLevel = this.levels[0].name
if (this.levels[0]){
this.selectedLevel = this.levels[0].name
}
}
}
},