From ae8023c52de4ec2c976a8958e714e9bc002e867b Mon Sep 17 00:00:00 2001 From: Udschal Imanov Date: Wed, 2 May 2018 22:16:13 +0200 Subject: [PATCH] fix strapi.reload.isWatching === undefined --- packages/strapi/lib/Strapi.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/strapi/lib/Strapi.js b/packages/strapi/lib/Strapi.js index 63f35367e0..5a69c31ea9 100755 --- a/packages/strapi/lib/Strapi.js +++ b/packages/strapi/lib/Strapi.js @@ -236,8 +236,9 @@ class Strapi extends EventEmitter { // Special state when the reloader is disabled temporarly (see GraphQL plugin example). state.shouldReload = !(state.isWatching === false && value === true); state.isWatching = value; - - return value; + }, + get: () => { + return state.isWatching; } });