diff options
Diffstat (limited to 'components/editor/task')
| -rw-r--r-- | components/editor/task/EditorTaskConfiguration.vue | 2 | ||||
| -rw-r--r-- | components/editor/task/modal/EditorTaskModalCreate.vue | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/components/editor/task/EditorTaskConfiguration.vue b/components/editor/task/EditorTaskConfiguration.vue index bda75f4..5313767 100644 --- a/components/editor/task/EditorTaskConfiguration.vue +++ b/components/editor/task/EditorTaskConfiguration.vue @@ -32,7 +32,7 @@ const requiredFields = computed(() => { // }); const remainingGivenFields = computed(() => { - return Object.keys(taskConfig.value).filter((fieldName) => !requiredFields.value.includes(fieldName)); + return Object.keys(taskConfig.value).filter((fieldName) => !requiredFields.value.includes(fieldName) && fieldName in taskDefintion.value.configuration); }); const configKeysOptions = computed(() => Object.keys(taskDefintion.value.configuration).filter((key) => !Object.keys(taskConfig.value).some((fieldName) => fieldName === key))); diff --git a/components/editor/task/modal/EditorTaskModalCreate.vue b/components/editor/task/modal/EditorTaskModalCreate.vue index 30e4cca..e5b2d7a 100644 --- a/components/editor/task/modal/EditorTaskModalCreate.vue +++ b/components/editor/task/modal/EditorTaskModalCreate.vue @@ -1,7 +1,6 @@ <script setup lang="ts"> import { computed, ref } from 'vue'; import { useSessionStore } from '@/stores/session'; -import { validateTaskId } from '@/lib/util'; const model = defineModel(); |
