Skip to content

Commit

Permalink
Fix: subtitle list loading
Browse files Browse the repository at this point in the history
  • Loading branch information
LazyCreeper committed Dec 10, 2023
1 parent aa0ad5a commit 18451df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/dialogs/customSubtitles.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ const submit = async () => {
const open = ref(false);
const openDialog = () => {
subtitleList.value = Object.entries(props.customSubtitles).map(([name, subtitle]) => ({
name,
...subtitle
}));
open.value = true;
};
Expand All @@ -89,10 +93,6 @@ defineExpose({
onMounted(() => {});
onMounted(() => {
subtitleList.value = Object.entries(props.customSubtitles).map(([name, subtitle]) => ({
name,
...subtitle
}));
if (subtitleList.value.length === 0) addItem();
});
</script>
Expand Down

0 comments on commit 18451df

Please sign in to comment.