Skip to content

Commit

Permalink
fix: default project icon (#4984)
Browse files Browse the repository at this point in the history
Signed-off-by: Eduard Aksamitov <e@euaaaio.ru>
  • Loading branch information
euaaaio authored Mar 15, 2024
1 parent d8ef26d commit 61263c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions plugins/time-resources/src/components/ToDoGroup.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
themeStore
} from '@hcengineering/ui'
import { ToDosMode } from '..'
import { Project } from '@hcengineering/tracker'
import tracker, { Project } from '@hcengineering/tracker'
import view from '@hcengineering/view'
export let mode: ToDosMode
Expand Down Expand Up @@ -78,7 +78,7 @@
{#if groups}
{#each groups as group}
<AccordionItem
icon={group.icon === view.ids.IconWithEmoji ? IconWithEmoji : group.icon}
icon={group.icon === view.ids.IconWithEmoji ? IconWithEmoji : group.icon ?? tracker.icon.Home}
iconProps={group.icon === view.ids.IconWithEmoji
? { icon: group.color }
: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
let name: string = project?.name ?? namePlaceholder
let description: string = project?.description ?? descriptionPlaceholder
let isPrivate: boolean = project?.private ?? false
let icon: Asset | undefined = project?.icon ?? undefined
let icon: Asset | undefined = project?.icon ?? tracker.icon.Home
let color = project?.color ?? getColorNumberByText(name)
let isColorSelected = false
let defaultAssignee: Ref<Employee> | null | undefined = project?.defaultAssignee ?? null
Expand Down

0 comments on commit 61263c7

Please sign in to comment.