Skip to content

Commit

Permalink
Fixed linter
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSimCity committed Feb 2, 2024
1 parent 0015771 commit 2e2f536
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions pages/search.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<script lang="ts" setup>
import type {
SearchFilter,
SearchResults,
TrackModel,
} from "@bcc-code/bmm-sdk-fetch";
import type { IDiscoverableGroup } from "~/composables/discover";
import type { SearchFilter, SearchResults } from "@bcc-code/bmm-sdk-fetch";

Check warning on line 2 in pages/search.vue

View check run for this annotation

Codecov / codecov/patch

pages/search.vue#L2

Added line #L2 was not covered by tests
const { t } = useI18n();
toolbarTitleStore().setReactiveToolbarTitle(() => t("nav.search"));
Expand Down Expand Up @@ -59,13 +54,6 @@ const tabs = [
] as const;
const { setQueue } = useNuxtApp().$mediaPlayer;
const playItem = (item: TrackModel, group: IDiscoverableGroup) => {
const items = group.items.filter((c): c is TrackModel => c.type === "track");
setQueue(
items,
items.findIndex((track) => track.id === item.id),
);
};
</script>

<template>
Expand Down Expand Up @@ -106,7 +94,7 @@ const playItem = (item: TrackModel, group: IDiscoverableGroup) => {
:track="item"
:is-track-type-known="true"
show-thumbnail
@play-track="playItem(item, { header: null, items: [item] })"
@play-track="setQueue([item])"

Check warning on line 97 in pages/search.vue

View check run for this annotation

Codecov / codecov/patch

pages/search.vue#L97

Added line #L97 was not covered by tests
></TrackItem>
<ContributorListItem
v-else-if="item.type === 'contributor'"
Expand Down

0 comments on commit 2e2f536

Please sign in to comment.