fix: add change method param on callback (#4963)

This commit is contained in:
Mark Kim 2022-07-13 14:01:52 -04:00 committed by GitHub
parent deb1038c28
commit c6e0591c58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -169,7 +169,7 @@ export const RequestUrlBar = forwardRef<RequestUrlBarHandle, Props>(({
<div className="urlbar">
<MethodDropdown
ref={methodDropdownRef}
onChange={() => onMethodChange(request, method)}
onChange={(methodValue: string) => onMethodChange(request, methodValue)}
method={method}
/>
<div className="urlbar__flex__right">