From 04d09c2d77f0122478dd3bf01cdffd4a79eb2580 Mon Sep 17 00:00:00 2001 From: Jyong <76649700+JohnJyong@users.noreply.github.com> Date: Fri, 12 Dec 2025 13:45:00 +0800 Subject: [PATCH] fix: hit-test failed when attachment id is not exist (#29563) --- api/services/hit_testing_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/services/hit_testing_service.py b/api/services/hit_testing_service.py index 8e8e78f83f..8cbf3a25c3 100644 --- a/api/services/hit_testing_service.py +++ b/api/services/hit_testing_service.py @@ -178,8 +178,8 @@ class HitTestingService: @classmethod def hit_testing_args_check(cls, args): - query = args["query"] - attachment_ids = args["attachment_ids"] + query = args.get("query") + attachment_ids = args.get("attachment_ids") if not attachment_ids and not query: raise ValueError("Query or attachment_ids is required")