chore: added null check before trimming request url

This commit is contained in:
Anoop M D 2023-11-19 00:01:29 +05:30
parent 7a4d59d50c
commit 8f4ce9c13b

View File

@ -34,7 +34,7 @@ const QueryUrl = ({ item, collection, handleRun }) => {
requestUrlChanged({
itemUid: item.uid,
collectionUid: collection.uid,
url: value.trim()
url: value && typeof value === 'string' ? value.trim() : value
})
);
};