Add default prop to assignment component

This commit is contained in:
Ramon Wenger 2024-05-02 17:48:02 +02:00
parent 291a0609a0
commit b8290838a1
1 changed files with 3 additions and 1 deletions

View File

@ -85,7 +85,9 @@ const SpellCheck = defineAsyncComponent(() => import('@/components/content-block
const route = useRoute();
const assignmentDiv = ref<HTMLElement | null>(null);
const props = defineProps<Props>();
const props = withDefaults(defineProps<Props>(), {
highlights: () => [],
});
const initialSubmission = {
text: '',