Skip to content

Commit

Permalink
explicit return for player link in bookmark
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBrax committed Jun 9, 2024
1 parent f7b50c1 commit 1f1dc20
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client-vue/src/components/vod/VodItemBookmarks.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ import { onMounted, ref } from "vue";
import { useI18n } from "vue-i18n";
import type { VODTypes } from "@/twitchautomator";
import type { VODBookmark } from "@common/Bookmark";
import type { RouteLocationRaw } from "vue-router";
const props = defineProps({
vod: {
Expand Down Expand Up @@ -107,8 +108,8 @@ function doDeleteBookmark(i: number) {
});
}
function playerLink(bookmark: VODBookmark) {
if (!props.vod) return;
function playerLink(bookmark: VODBookmark) : RouteLocationRaw {
if (!props.vod) return { name: "Editor" };
return {
name: "Editor",
params: {
Expand Down

0 comments on commit 1f1dc20

Please sign in to comment.