Skip to content

Commit 0a8ee2d

Browse files
author
Matt Gadda
committed
Fixes graphql#223 - handle case when .graphqlconfig defines projects
1 parent 21d4c04 commit 0a8ee2d

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)