Skip to content

Commit a1d7ed4

Browse files
fix[frontend](soar/create-rule): added fixed create/edit rule undefined id error
1 parent b0c5b52 commit a1d7ed4

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

frontend/src/app/incident-response/playbook-builder/playbook-builder.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export class PlaybookBuilderComponent implements OnInit, OnDestroy {
196196
}
197197

198198
createRule() {
199-
if (this.rule.id) {
199+
if (this.rule && this.rule.id) {
200200
this.editRule();
201201
} else {
202202
this.saveRule();

frontend/src/environments/environment.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
export const environment = {
66
production: false,
7-
// SERVER_API_URL: 'https://10.11.11.18/',
8-
SERVER_API_URL: 'http://localhost:8080/',
7+
SERVER_API_URL: 'https://10.11.11.18/',
8+
// SERVER_API_URL: 'http://localhost:8080/',
99
SERVER_API_CONTEXT: '',
1010
SESSION_AUTH_TOKEN: window.location.host.split(':')[0].toLocaleUpperCase(),
1111
WEBSOCKET_URL: '//localhost:8080',

0 commit comments

Comments
 (0)