aboutsummaryrefslogtreecommitdiffstats
path: root/components/editor/task
diff options
context:
space:
mode:
authorLeonardo Bishop <me@leonardobishop.com>2024-03-12 19:18:52 +0000
committerLeonardo Bishop <me@leonardobishop.com>2024-03-12 19:18:52 +0000
commita4052ffee8bc7c6c8a69eba5120b5c6c2d951b0f (patch)
tree970921e587c0972ed4bf8a82a18bbad8dee10458 /components/editor/task
parentaddf95bc7e1e694cd9ba7797c8b0847bfecaf54c (diff)
Add items
Diffstat (limited to 'components/editor/task')
-rw-r--r--components/editor/task/EditorTaskConfigurationRow.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/editor/task/EditorTaskConfigurationRow.vue b/components/editor/task/EditorTaskConfigurationRow.vue
index 666669d..c00896f 100644
--- a/components/editor/task/EditorTaskConfigurationRow.vue
+++ b/components/editor/task/EditorTaskConfigurationRow.vue
@@ -41,7 +41,7 @@ if (props.initialValue !== currentValue.value) {
emit('update', currentValue.value);
}
-const error = computed(() => currentValue.value === undefined || currentValue.value === null || currentValue.value === '' || (Array.isArray(currentValue.value) && currentValue.value.length === 0));
+const error = computed(() => currentValue.value === undefined || currentValue.value === null || currentValue.value === '' || (Array.isArray(currentValue.value) && currentValue.value.length === 0) || (typeof currentValue.value === 'object' && Object.keys(currentValue.value).length === 0));
const updateValue = (value: any) => {
currentValue.value = value;
};