mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-09 23:17:59 -05:00
fix(kb-sanitization): add sanitization for kb tags when exporting workflow (#1628)
This commit is contained in:
@@ -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 = ''
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user