Skip to content

Commit

Permalink
Fix: flows is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
Bacra committed Aug 25, 2019
1 parent 3fe6ca4 commit 37b1974
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/linker.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ _.extend(proto,
options = _.extend({}, this.options.defaults,
defaultFlowOptions, options);

if (!options.flows) options.flows = [];

var client = this._clients[clientName] = new Client(clientName, this, options);
debug('add client:%s', clientName);

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clientlinker-core",
"version": "7.4.0",
"version": "7.4.1",
"description": "Linker all clients whether rpc, addon, http request, mock data, local file ...",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 37b1974

Please sign in to comment.