diff --git a/Sources/Screens/Organization/OrganizationSettings.swift b/Sources/Screens/Organization/OrganizationSettings.swift index 0375b65..8427e2c 100644 --- a/Sources/Screens/Organization/OrganizationSettings.swift +++ b/Sources/Screens/Organization/OrganizationSettings.swift @@ -35,7 +35,9 @@ struct OrganizationSettings: View { NavigationLink { OrganizationEditName(organizationStore: organizationStore) { updatedOranization in organizationStore.current = updatedOranization - if let index = organizationStore.entities?.firstIndex(where: { $0.id == updatedOranization.id }) { + if let index = organizationStore.entities?.firstIndex(where: { + $0.id == updatedOranization.id + }) { organizationStore.entities?[index] = updatedOranization } } diff --git a/Sources/Screens/Workspace/WorkspaceSettings.swift b/Sources/Screens/Workspace/WorkspaceSettings.swift index e69f68d..8a259fb 100644 --- a/Sources/Screens/Workspace/WorkspaceSettings.swift +++ b/Sources/Screens/Workspace/WorkspaceSettings.swift @@ -56,7 +56,9 @@ struct WorkspaceSettings: View { NavigationLink { WorkspaceEditName(workspaceStore: workspaceStore) { updatedWorkspace in workspaceStore.current = updatedWorkspace - if let index = workspaceStore.entities?.firstIndex(where: { $0.id == updatedWorkspace.id }) { + if let index = workspaceStore.entities?.firstIndex(where: { + $0.id == updatedWorkspace.id + }) { workspaceStore.entities?[index] = updatedWorkspace } }