Skip to content

Commit

Permalink
deps: update to v0.0.1-alpha.12
Browse files Browse the repository at this point in the history
- Connects to latest version of the RPA worker
- Uses URL instead of host + port
  • Loading branch information
marstamm authored and barmac committed Feb 18, 2025
1 parent 269fadf commit 157da9d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 14 deletions.
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@camunda/form-playground": "^0.20.0",
"@camunda/improved-canvas": "^1.7.6",
"@camunda/linting": "^3.31.0",
"@camunda/rpa-integration": "0.0.1-alpha.4",
"@camunda/rpa-integration": "0.0.1-alpha.12",
"@carbon/icons-react": "^11.53.0",
"@codemirror/commands": "^6.6.2",
"@codemirror/lang-json": "^6.0.1",
Expand Down
13 changes: 9 additions & 4 deletions client/src/app/tabs/rpa/RPAEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,18 +196,19 @@ export class RPAEditor extends CachedComponent {

const {
lastXML,
lastWorkerConfig
lastWorkerConfig,
editor
} = this.getCached();

if (isXMLChange(lastXML, xml)) {
this.createEditor();
return;
}


const rpaConfig = await this.props.getConfig('rpa', {});
if (rpaConfig.workerConfig !== lastWorkerConfig) {
this.createEditor();
if (isWorkerConfigChange(rpaConfig.workerConfig, lastWorkerConfig)) {
editor.workerConfig = rpaConfig.workerConfig;
editor.eventBus.fire('config.changed', rpaConfig.workerConfig);
return;
}
}
Expand Down Expand Up @@ -362,6 +363,10 @@ function isXMLChange(prevXML, xml) {
return trim(prevXML) !== trim(xml);
}

function isWorkerConfigChange(prevConfig, config) {
return JSON.stringify(prevConfig) !== JSON.stringify(config);
}

function trim(string) {
if (isString(string)) {
return string.trim();
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

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

0 comments on commit 157da9d

Please sign in to comment.