From 54c3d23513a0ff5adfec6f117ff7c20b824403dd Mon Sep 17 00:00:00 2001 From: Jay Xu Date: Tue, 26 May 2026 10:04:43 +0800 Subject: [PATCH] Fix [Bug]: Save parser configs in dataset configuration page is not working #15175 (#15177) ### What problem does this PR solve? Fix [Bug]: Save parser configs in dataset configuration page is not working #15175 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- api/utils/validation_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/utils/validation_utils.py b/api/utils/validation_utils.py index b499af8fe4..11bafbcd18 100644 --- a/api/utils/validation_utils.py +++ b/api/utils/validation_utils.py @@ -557,7 +557,7 @@ class CreateDatasetReq(Base): CreateDatasetReq(avatar="data:video/mp4;base64,...") # Unsupported MIME type ``` """ - if v is None: + if not v: # cover both None and empty string return v if "," in v: