Merge pull request #1110 from ujal/fix-reload

Fix strapi.reload.isWatching === undefined
This commit is contained in:
Jim LAURIE 2018-05-10 09:37:49 +02:00 committed by GitHub
commit f46950ee4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}
});