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

Fixes #223 - handle case when .graphqlconfig defines projects #225

Merged
merged 1 commit into from
Apr 11, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/server/src/MessageProcessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export class MessageProcessor {
// Otherwise, subcribe watchman according to project config(s).
const config = getGraphQLConfig(rootPath);
let projectConfigs: GraphQLProjectConfig[] =
Object.values(config.getProjects()) || [];
Object.values(config.getProjects() || {}) || [];
// There can either be a single config or one or more project
// configs, but not both.
if (projectConfigs.length === 0) {
Expand Down