Skip to content

Commit 6723adf

Browse files
authored
fix(kb-sanitization): add sanitization for kb tags when exporting workflow (#1628)
1 parent 9efc08a commit 6723adf

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

apps/sim/lib/workflows/json-sanitizer.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,11 @@ function sanitizeSubBlocks(
234234
return
235235
}
236236

237+
// Skip knowledge base tag filters and document tags (workspace-specific data)
238+
if (key === 'tagFilters' || key === 'documentTags') {
239+
return
240+
}
241+
237242
sanitized[key] = subBlock.value
238243
})
239244

@@ -384,6 +389,10 @@ export function sanitizeForExport(state: WorkflowState): ExportWorkflowState {
384389
) {
385390
subBlock.value = ''
386391
}
392+
// Remove knowledge base tag filters and document tags (workspace-specific data)
393+
if (key === 'tagFilters' || key === 'documentTags') {
394+
subBlock.value = ''
395+
}
387396
})
388397
}
389398

0 commit comments

Comments
 (0)