diff --git a/ui/src/workflow/nodes/variable-assign-node/index.vue b/ui/src/workflow/nodes/variable-assign-node/index.vue
index 5052fea4a..475c2560d 100644
--- a/ui/src/workflow/nodes/variable-assign-node/index.vue
+++ b/ui/src/workflow/nodes/variable-assign-node/index.vue
@@ -56,7 +56,13 @@
v-model="item.type"
style="max-width: 85px"
class="mr-8"
- @change="form_data.variable_list[index].value = null"
+ @change="(val: string) => {
+ if (val === 'bool') {
+ form_data.variable_list[index].value = true;
+ } else {
+ form_data.variable_list[index].value = null;
+ }
+ }"
>
@@ -122,6 +128,20 @@
@submitDialog="(val: string) => (form_data.variable_list[index].value = val)"
/>
+
+
+
+
+
+
()
-const typeOptions = ['string', 'num', 'json']
+const typeOptions = ['string', 'num', 'json', 'bool']
const wheel = (e: any) => {
if (e.ctrlKey === true) {
@@ -177,6 +197,7 @@ const form = {
},
],
}
+const boolValue = ref(1)
const form_data = computed({
get: () => {