mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-25 21:55:49 +00:00
fix: avoid error toast while pasting non-cURL value in GQL url field (#6718)
This commit is contained in:
committed by
lohit-bruno
parent
5f6be0a82c
commit
77e47f361b
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user