From 8fef03b816e016a1637a2557c1a1cb6e0cab7bc2 Mon Sep 17 00:00:00 2001 From: spalger Date: Thu, 24 Mar 2016 14:36:18 -0700 Subject: [PATCH] [courier/callClient] if there are no executable requests, do nothing --- src/ui/public/courier/fetch/call_client.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ui/public/courier/fetch/call_client.js b/src/ui/public/courier/fetch/call_client.js index 2157e4420d95..5f3aa747aef5 100644 --- a/src/ui/public/courier/fetch/call_client.js +++ b/src/ui/public/courier/fetch/call_client.js @@ -20,6 +20,8 @@ export default function CourierFetchCallClient(Private, Promise, es, esShardTime const executable = statuses.filter(isRequest); let execCount = executable.length; + if (!execCount) return Promise.resolve([]); + // resolved by respond() let esPromise; const defer = Promise.defer();