mirror of
https://github.com/rommapp/romm.git
synced 2026-02-18 00:27:41 +01:00
fix code review errors
This commit is contained in:
@@ -20,7 +20,7 @@ const props = withDefaults(defineProps<Props>(), {
|
||||
|
||||
const youtubeVideoId = computed(
|
||||
() =>
|
||||
props.rom.youtube_video_id || props.rom.manual_metadata?.youtube_video_id,
|
||||
props.rom.manual_metadata?.youtube_video_id || props.rom.youtube_video_id,
|
||||
);
|
||||
|
||||
const localVideoPath = computed(() => {
|
||||
|
||||
@@ -45,7 +45,7 @@ const emit = defineEmits<{
|
||||
|
||||
const udpateManualMetadata = (
|
||||
field: keyof UpdateRom["manual_metadata"],
|
||||
value: string | number | null,
|
||||
value: string | number | string[] | null,
|
||||
) => {
|
||||
emit("update:rom", {
|
||||
...props.rom,
|
||||
@@ -56,7 +56,7 @@ const udpateManualMetadata = (
|
||||
});
|
||||
};
|
||||
|
||||
const manualMetadata = props.rom.manual_metadata || {};
|
||||
const manualMetadata = computed(() => props.rom.manual_metadata || {});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
Reference in New Issue
Block a user