Skip to content

Commit

Permalink
fix: more linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bouassaba committed Nov 21, 2024
1 parent e3d9f6c commit 9acac5e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Sources/Screens/Organization/OrganizationSettings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down
4 changes: 3 additions & 1 deletion Sources/Screens/Workspace/WorkspaceSettings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 9acac5e

Please sign in to comment.