fix(kb-sanitization): add sanitization for kb tags when exporting workflow (#1628)

This commit is contained in:
Waleed
2025-10-14 16:56:04 -07:00
committed by GitHub
parent 9efc08a832
commit 6723adf3c1

View File

@@ -234,6 +234,11 @@ function sanitizeSubBlocks(
return
}
// Skip knowledge base tag filters and document tags (workspace-specific data)
if (key === 'tagFilters' || key === 'documentTags') {
return
}
sanitized[key] = subBlock.value
})
@@ -384,6 +389,10 @@ export function sanitizeForExport(state: WorkflowState): ExportWorkflowState {
) {
subBlock.value = ''
}
// Remove knowledge base tag filters and document tags (workspace-specific data)
if (key === 'tagFilters' || key === 'documentTags') {
subBlock.value = ''
}
})
}