From 8dfe26b2b9e62655477a5e7c6b54fb70ac406962 Mon Sep 17 00:00:00 2001 From: Olivier Ribiere Date: Tue, 29 Oct 2024 13:43:17 +0100 Subject: [PATCH] fix types errors for build --- vue/src/stores/projectStore.ts | 4 ++-- vue/src/views/projects/ProjectSheetView.vue | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/vue/src/stores/projectStore.ts b/vue/src/stores/projectStore.ts index 83fa88d6..2baade11 100644 --- a/vue/src/stores/projectStore.ts +++ b/vue/src/stores/projectStore.ts @@ -106,9 +106,9 @@ export const useProjectStore = defineStore(StoresList.PROJECTS, () => { case SortKey.UPDATED_AT_AZ: return sortedProjects.sort((a, b) => (new Date(b.updatedAt).valueOf() - new Date(a.updatedAt).valueOf())); case SortKey.ACTORS_AZ: - return sortedProjects.sort((a, b) => a.actor.name.localeCompare(b.actor.name)); + return sortedProjects.sort((a, b) => (a.actor.name as string).localeCompare(b.actor.name as string)); case SortKey.ACTORS_ZA: - return sortedProjects.sort((a, b) => b.actor.name.localeCompare(a.actor.name)); + return sortedProjects.sort((a, b) => (b.actor.name as string).localeCompare(a.actor.name as string)); default: return sortedProjects } diff --git a/vue/src/views/projects/ProjectSheetView.vue b/vue/src/views/projects/ProjectSheetView.vue index 5b2c6ad7..d9fca165 100644 --- a/vue/src/views/projects/ProjectSheetView.vue +++ b/vue/src/views/projects/ProjectSheetView.vue @@ -41,7 +41,7 @@
{{ $t('projectPage.projectOwner') }}
- +
{{ $t('projectPage.focalPoint') }}
@@ -81,6 +81,7 @@ import PrintButton from '@/components/global/PrintButton.vue'; import UpdatedAtLabel from '@/views/_layout/sheet/UpdatedAtLabel.vue'; import SectionBanner from '@/components/banners/SectionBanner.vue'; import { ProjectListDisplay } from '@/models/enums/app/ProjectListType'; +import type { Actor } from '@/models/interfaces/Actor'; const userStore = useUserStore(); const projectStore = useProjectStore();