Skip to content

Commit

Permalink
fix: empty docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
BramMeir committed May 23, 2024
1 parent 33a8840 commit 27ff6ab
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ const confirmDialogVisible = ref(false);
const rules = computed(() => {
return {
name: { required: helpers.withMessage(t('validations.required'), required) },
docker_image: { required: helpers.withMessage(t('validations.required'), required) },
docker_image: {
required: helpers.withMessage(t('validations.required'), (value: DockerImage) => value.id !== ''),
},
file: { required: helpers.withMessage(t('validations.required'), required) },
time_limit: { required: helpers.withMessage(t('validations.required'), required) },
memory_limit: { required: helpers.withMessage(t('validations.required'), required) },
Expand Down

0 comments on commit 27ff6ab

Please sign in to comment.