- {{ t("no_code.adding", {what: props.what}) }}
+ {{
+ props.what
+ ? t("no_code.adding", {what: props.what})
+ : t("no_code.adding_default")
+ }}
@@ -9,7 +13,7 @@
const {t} = useI18n({useScope: "global"});
const emits = defineEmits(["add"]);
- const props = defineProps({what: {type: String, required: true}});
+ const props = defineProps({what: {type: String, default: undefined}});
diff --git a/ui/src/components/flows/tasks/TaskString.vue b/ui/src/components/flows/tasks/TaskString.vue
index 6ed29b0ffe4..7ee7cdb421e 100644
--- a/ui/src/components/flows/tasks/TaskString.vue
+++ b/ui/src/components/flows/tasks/TaskString.vue
@@ -8,23 +8,20 @@
/>