fix: avoid error toast while pasting non-cURL value in GQL url field (#6718)

This commit is contained in:
Abhishek S Lal
2026-01-07 13:27:38 +05:30
committed by lohit-bruno
parent 5f6be0a82c
commit 77e47f361b

View File

@@ -95,7 +95,7 @@ const QueryUrl = ({ item, collection, handleRun }) => {
const curlCommandRegex = /^\s*curl\s/i;
if (!curlCommandRegex.test(pastedData)) {
toast.error('Invalid cURL command');
// Not a curl command, allow normal paste behavior
return;
}
event.preventDefault();