Skip to content

Commit

Permalink
Merge pull request #2507 from swaterkamp/delProcWithNoEdge
Browse files Browse the repository at this point in the history
Allow to delete process without having had edges
  • Loading branch information
sarahd93 authored Oct 13, 2020
2 parents 24390ac + 55e214b commit 76ee110
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Use <predefined> to disable feed object editing and filter creation on feed status page [#2398](https://github.com/greenbone/gsa/pull/2398)

### Fixed
- Allow to delete processes without having had edges in BPM [#2507](https://github.com/greenbone/gsa/pull/2507)
- Fixed TLS certificate download for users with permissions [#2496](https://github.com/greenbone/gsa/pull/2496)
- Fixed form validation error tooltips [#2478](https://github.com/greenbone/gsa/pull/2478)
- Only show schedule options in advanced and modify task wizard if user has correct permissions [#2472](https://github.com/greenbone/gsa/pull/2472)
Expand Down
2 changes: 1 addition & 1 deletion gsa/src/web/components/processmap/processmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ class ProcessMap extends React.Component {
handleDeleteElement() {
if (isDefined(this.selectedElement)) {
const {id} = this.selectedElement;
const {processes, edges} = this.state;
const {processes, edges = {}} = this.state;
if (isDefined(id)) {
if (this.selectedElement && this.selectedElement.type === 'edge') {
delete edges[id];
Expand Down

0 comments on commit 76ee110

Please sign in to comment.