Add default prop to assignment component
This commit is contained in:
parent
291a0609a0
commit
b8290838a1
|
|
@ -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: '',
|
||||
|
|
|
|||
Loading…
Reference in New Issue