We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba7025b commit 69f1eedCopy full SHA for 69f1eed
apps/frontend/src/components/Command.vue
@@ -44,7 +44,7 @@ const command = toRef(props, 'command');
44
const commands = toRef(props, 'commands');
45
const emit = defineEmits<{
46
(e: 'delete', index: number): void
47
- (e: 'save', index): void
+ (e: 'save', index: number): void
48
}>();
49
50
const schema = computed(() => yup.object({
@@ -84,7 +84,8 @@ const schema = computed(() => yup.object({
84
return true;
85
}),
86
),
87
- }));
+ commands: yup.array().required('Responses cannot be empty.'),
88
+}));
89
90
async function deleteCommand() {
91
const index = commands.value.indexOf(command.value);
0 commit comments