Skip to content

Commit

Permalink
chore: remove use of deprecated filters
Browse files Browse the repository at this point in the history
  • Loading branch information
aweebs committed Feb 19, 2023
1 parent 8d3da59 commit cc6ae25
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions frontend/src/components/Item/Metadata/ImageSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
</div>
<div class="text-center text-body-2 text-grey-darken-2 info-box">
<template v-if="item.CommunityRating">
{{ item.CommunityRating | fixed }}
{{ item.CommunityRating.toFixed(1) }}
<template v-if="item.VoteCount">
&middot; {{ item.VoteCount }} votes
</template>
Expand Down Expand Up @@ -102,15 +102,6 @@ import { getRemoteImageApi } from '@jellyfin/sdk/lib/utils/api/remote-image-api'
import { useResponsiveClasses } from '@/composables';
export default defineComponent({
filters: {
fixed(value: number): string | number {
if (!value) {
return value;
}
return value.toFixed(1);
}
},
props: {
metadata: {
type: Object,
Expand Down

0 comments on commit cc6ae25

Please sign in to comment.