Skip to content

Commit

Permalink
fix types errors for build
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Ribiere committed Oct 29, 2024
1 parent 1b6304c commit 8dfe26b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions vue/src/stores/projectStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
3 changes: 2 additions & 1 deletion vue/src/views/projects/ProjectSheetView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<div class="SheetView__infoCard">
<div class="SheetView__infoCardBlock">
<h5 class="SheetView__title">{{ $t('projectPage.projectOwner') }}</h5>
<ActorCard :actor="project.actor" light="true" />
<ActorCard :actor="(project.actor as Actor)" light="true" />
</div>
<div class="SheetView__infoCardBlock">
<h5 class="SheetView__title">{{ $t('projectPage.focalPoint') }}</h5>
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 8dfe26b

Please sign in to comment.