Skip to content

Commit 1d986fe

Browse files
committed
fix: Default data for local file nodes
1 parent 842b4dd commit 1d986fe

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

ui/src/workflow/common/data.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ export const dataSourceLocalNode = {
8989
height: 728.375,
9090
stepName: t('views.workflow.nodes.dataSourceLocalNode.label'),
9191
input_field_list: [],
92-
node_data: {},
9392
config: {
9493
fields: [
9594
{

ui/src/workflow/nodes/data-source-local-node/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ const props = defineProps<{ nodeModel: any }>()
9393
9494
const file_type_list_options = ['TXT', 'DOCX', 'PDF', 'HTML', 'XLS', 'XLSX', 'ZIP', 'CSV']
9595
const form = {
96-
file_type_list: [],
97-
file_size_limit: 50,
98-
file_count_limit: 100,
96+
file_type_list: ['TXT', 'DOCX', 'PDF', 'HTML', 'XLS', 'XLSX', 'ZIP', 'CSV'],
97+
file_size_limit: 100,
98+
file_count_limit: 50,
9999
}
100100
101101
const form_data = computed({

0 commit comments

Comments
 (0)