Skip to content

Commit

Permalink
Fixes bug with API loader by defaulting to changed state (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
akshay-madhukar authored Jul 22, 2022
1 parent dafc709 commit 7b2ab58
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cli/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@itwin/pcf-cli",
"version": "0.3.0-2",
"version": "0.3.0-3",
"description": "iTwin PCF command line",
"license": "MIT",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion core/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@itwin/pcf",
"version": "0.3.0-2",
"version": "0.3.0-3",
"description": "Define your digital twin as code with iTwin PCF (Parametric Connector Framework).",
"main": "lib/pcf.js",
"typings": "lib/pcf",
Expand Down
3 changes: 3 additions & 0 deletions core/src/Node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,9 @@ export class LoaderNode extends Node implements LoaderNodeProps {
kind: instance.entityKey,
identifier: code.value,
});

if (con.kind === "pcf_api_connection")
result.state = ItemState.Changed;

this.pc.onSyncElement(result, instance);
return result;
Expand Down

0 comments on commit 7b2ab58

Please sign in to comment.