mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-11 17:46:41 -05:00
Fix copy response body reference
Closes https://feedback.yaak.app/p/copy-body-only-works-on-first-click
This commit is contained in:
@@ -6,7 +6,7 @@ import { getResponseBodyText } from '../lib/responseBody';
|
||||
export function useCopyHttpResponse(response: HttpResponse) {
|
||||
const copy = useCopy();
|
||||
return useFastMutation({
|
||||
mutationKey: ['copy_http_response'],
|
||||
mutationKey: ['copy_http_response', response.id],
|
||||
async mutationFn() {
|
||||
const body = await getResponseBodyText(response);
|
||||
copy(body);
|
||||
|
||||
Reference in New Issue
Block a user