Skip to content

Commit

Permalink
Bug in Route creation corrected.
Browse files Browse the repository at this point in the history
  • Loading branch information
ligreman committed Sep 20, 2022
1 parent 6e57213 commit d889579
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "king",
"version": "3.0.1",
"version": "3.0.2",
"scripts": {
"ng": "ng",
"start": "ng serve",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -456,10 +456,11 @@ export class DialogNewRouteComponent implements OnInit, OnDestroy {
value = '"' + value + '"';

if (field && op && value) {
out = field;
if (transform) {
out = transform;
out = transform + '(' + out + ')';
}
out += field + ' ' + op + ' ' + value;
out += ' ' + op + ' ' + value;
this.formE.get('expression').setValue(this.formE.get('expression').value + out);
}
}
Expand Down
5 changes: 3 additions & 2 deletions src/app/components/dialog-new-rsu/dialog-new-rsu.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,11 @@ export class DialogNewRsuComponent implements OnInit, OnDestroy {
value = '"' + value + '"';

if (field && op && value) {
out = field;
if (transform) {
out = transform;
out = transform + '(' + out + ')';
}
out += field + ' ' + op + ' ' + value;
out += ' ' + op + ' ' + value;
this.form.get('route.expression').setValue(this.form.get('route.expression').value + out);
}
}
Expand Down

0 comments on commit d889579

Please sign in to comment.