Skip to content
This repository was archived by the owner on Sep 2, 2020. It is now read-only.

Commit a937700

Browse files
mgaddalostplan
authored andcommitted
Fixes #223 - handle case when .graphqlconfig defines projects (#225)
1 parent 21d4c04 commit a937700

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/server/src/MessageProcessor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export class MessageProcessor {
149149
// Otherwise, subcribe watchman according to project config(s).
150150
const config = getGraphQLConfig(rootPath);
151151
let projectConfigs: GraphQLProjectConfig[] =
152-
Object.values(config.getProjects()) || [];
152+
Object.values(config.getProjects() || {}) || [];
153153
// There can either be a single config or one or more project
154154
// configs, but not both.
155155
if (projectConfigs.length === 0) {

0 commit comments

Comments
 (0)