From 16e852115c55d3391f2df0f00a86c3f67c076f69 Mon Sep 17 00:00:00 2001 From: Jo Booth Date: Tue, 4 Feb 2025 14:53:22 -0500 Subject: [PATCH] remove unnecessary behavior --- label_studio/projects/views.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/label_studio/projects/views.py b/label_studio/projects/views.py index 050259aa404f..3609755a1513 100644 --- a/label_studio/projects/views.py +++ b/label_studio/projects/views.py @@ -39,9 +39,7 @@ def playground_replacements(request, task_data): @require_http_methods(['POST']) def upload_example_using_config(request): """Generate upload data example by config only""" - config = request.GET.get('label_config', '') - if not config: - config = request.POST.get('label_config', '') + config = request.POST.get('label_config', '') org_pk = get_organization_from_request(request) secure_mode = False