From 89b1399fb8f622546660ae7fa21c9d8bcb8ff8e1 Mon Sep 17 00:00:00 2001 From: ker73rus Date: Sat, 20 May 2023 06:19:34 +0400 Subject: [PATCH] fix --- UniversityCustomer/Views/Home/EducationGroups.cshtml | 2 +- UniversityCustomer/wwwroot/js/discipline/disciplines-update.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/UniversityCustomer/Views/Home/EducationGroups.cshtml b/UniversityCustomer/Views/Home/EducationGroups.cshtml index bf0c07b..68fca35 100644 --- a/UniversityCustomer/Views/Home/EducationGroups.cshtml +++ b/UniversityCustomer/Views/Home/EducationGroups.cshtml @@ -50,7 +50,7 @@ @item.NumberOfStudent - Изменить + Изменить Удалить diff --git a/UniversityCustomer/wwwroot/js/discipline/disciplines-update.js b/UniversityCustomer/wwwroot/js/discipline/disciplines-update.js index 4c72866..841dc1d 100644 --- a/UniversityCustomer/wwwroot/js/discipline/disciplines-update.js +++ b/UniversityCustomer/wwwroot/js/discipline/disciplines-update.js @@ -45,7 +45,7 @@ window.addEventListener('load', async () => { streams.forEach((stream) => { createStreamOption(stream); }); - select.selectedIndex = currentDiscipline.StreamId - 1; + select.selectedIndex = parseInt(currentDiscipline.streamId) -1; })