Skip to content

Commit

Permalink
Fixed assigning the name field in FlowStream.
Browse files Browse the repository at this point in the history
  • Loading branch information
petersirka committed Sep 26, 2024
1 parent dd5a7ea commit 5b2a1e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
- improved Markdown parser
- added a test functionality for testing Flow components
- added `F.extend(prototype, name, fn)` for extending Total.js prototypes
- fixed assigning the `name` field in FlowStream

========================
0.0.5
Expand Down
3 changes: 3 additions & 0 deletions flow-flowstream.js
Original file line number Diff line number Diff line change
Expand Up @@ -1006,6 +1006,7 @@ function init_current(meta, callback, nested) {
}
}

flow.name = meta.name || meta.id;
flow.env = meta.env;
flow.origin = meta.origin;
flow.proxypath = meta.proxypath || '';
Expand Down Expand Up @@ -1607,6 +1608,7 @@ function init_worker(meta, type, callback) {
break;

case 'stream/save':
worker.$schema.name = msg.data.name;
worker.$schema.components = msg.data.components;
worker.$schema.design = msg.data.design;
worker.$schema.variables = msg.data.variables;
Expand Down Expand Up @@ -2707,6 +2709,7 @@ function MAKEFLOWSTREAM(meta) {

flow.proxy.refreshmeta = function() {

flow.name = flow.$schema.name || flow.$schema.id;
flow.origin = flow.$schema.origin;
flow.proxypath = flow.$schema.proxypath || '';

Expand Down

0 comments on commit 5b2a1e9

Please sign in to comment.