From bc3f58a60017c17d8656fe26d9351ca58baee5ea Mon Sep 17 00:00:00 2001 From: oguzhankoral Date: Mon, 22 Jan 2024 16:16:50 +0300 Subject: [PATCH] Check families and levels before set --- ui/src/components/Mapper.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ui/src/components/Mapper.vue b/ui/src/components/Mapper.vue index 5ffb98d..66f1d08 100644 --- a/ui/src/components/Mapper.vue +++ b/ui/src/components/Mapper.vue @@ -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 + } } } },