Merge pull request #972 from bennieboj/bugfix/961_trim_url

fix #961 by using trim
This commit is contained in:
Anoop M D 2023-11-18 08:26:20 +05:30 committed by GitHub
commit cef8094709
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,7 @@ const QueryUrl = ({ item, collection, handleRun }) => {
requestUrlChanged({
itemUid: item.uid,
collectionUid: collection.uid,
url: value
url: value.trim()
})
);
};
@ -80,7 +80,7 @@ const QueryUrl = ({ item, collection, handleRun }) => {
}}
>
<IconDeviceFloppy
color={item.draft ? theme.colors.text.yellow : theme.requestTabs.icon.color}
color={item.draft ? theme.colors.text.purple : theme.requestTabs.icon.color}
strokeWidth={1.5}
size={22}
className={`${item.draft ? 'cursor-pointer' : 'cursor-default'}`}