From 8a61aa1ab35b7ac2aaf5ee130b29a79009bd6214 Mon Sep 17 00:00:00 2001 From: Gk40002148 Date: Fri, 25 Mar 2022 14:58:38 +0900 Subject: [PATCH] =?UTF-8?q?section=5Frole=5Fcode=20,=20section=5Frole=5Fna?= =?UTF-8?q?me=20=E3=82=92=20null=20=E8=A8=B1=E5=8F=AF=E3=81=B8=E5=A4=89?= =?UTF-8?q?=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AgileWorks/Profile/View/ProfileTableViewController.swift | 2 +- AgileWorks/Common/Entity/SessionInfo.swift | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/AgileWorks/AgileWorks/Profile/View/ProfileTableViewController.swift b/AgileWorks/AgileWorks/Profile/View/ProfileTableViewController.swift index 7f02139..ed8019b 100644 --- a/AgileWorks/AgileWorks/Profile/View/ProfileTableViewController.swift +++ b/AgileWorks/AgileWorks/Profile/View/ProfileTableViewController.swift @@ -105,7 +105,7 @@ class ProfileTableViewController: UITableViewController { title = unit.name case UnitType.role.rawValue: subject = localizadString(key: "RoleNameTitle", comment: "") - title = unit.sectionRoleName + title = unit.sectionRoleName ?? "" default: break } diff --git a/AgileWorks/Common/Entity/SessionInfo.swift b/AgileWorks/Common/Entity/SessionInfo.swift index 75da985..e893984 100644 --- a/AgileWorks/Common/Entity/SessionInfo.swift +++ b/AgileWorks/Common/Entity/SessionInfo.swift @@ -18,8 +18,8 @@ struct Unit: Codable { let code: String let name: String let mainUnit: Bool - let sectionRoleCode: String - let sectionRoleName: String + let sectionRoleCode: String? + let sectionRoleName: String? } struct Role: Codable { -- GitLab