fix: don't escape batch details field

This commit is contained in:
Jannat Patel
2025-11-13 14:22:50 +05:30
parent 46f5808fdb
commit 2aac558d4a
2 changed files with 1378 additions and 1 deletions

View File

@@ -503,7 +503,10 @@ const imageResource = createResource({
const validateFields = () => {
Object.keys(batch).forEach((key) => {
if (key != 'description' && typeof batch[key] === 'string') {
if (
!['description', 'batch_details'].includes(key) &&
typeof batch[key] === 'string'
) {
batch[key] = escapeHTML(batch[key])
}
})