From 883aff393c271b39bc8179ef597a67d045a5e376 Mon Sep 17 00:00:00 2001 From: Maayan Glikser Date: Wed, 23 Dec 2015 20:08:48 +0200 Subject: [PATCH] Fix a bug where a mocked request wouldn't show edit button and could not transfer to edit screen. --- lib/ui/components/captured-requests.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ui/components/captured-requests.js b/lib/ui/components/captured-requests.js index cf399cce..371f03bc 100644 --- a/lib/ui/components/captured-requests.js +++ b/lib/ui/components/captured-requests.js @@ -43,8 +43,8 @@ export class CapturedRequests extends React.Component { } _actionButtonFor(request) { - return this._isAlreadyMocked(request) - ? + return this._isAlreadyMocked.bind(this, request)() + ? : ; }