DependencyTrack / DependencyTrack/frontend

Policy condition fails to be visually removed when deleted

Open
#604 0 comments 0 reactions 0 assignees View on GitHub
defect in triage
Dominant language
Vue
Stars
171
Forks
250
Avg merge
11h 12m
Merged PRs (30d)
82

Description

### Current Behavior

When the delete button is clicked, the policy condition is not removed from the list. Although the request to the API goes through, the frontend fails to remove the item visually.

There's an error in console
![image](https://github.com/DependencyTrack/frontend/assets/15019968/de704f2a-c95a-45d8-9c47-8cf4134e09df)

By refreshing the page deleted item is gone.

### Steps to Reproduce

1. [OK] Login to DepenendyTrack
2. [OK] Navigate to Policy Management
3. [OK] Create new Policy
4. [OK] Add policy condition - make sure condition is saved
5. [NOK] Delete policy condition by clicking on delete icon. Toast notification is shown, but deleted row remains.

### Expected Behavior

Expected the policy condition to be removed from the list when the delete button is clicked.

Version is actually 4.8.2, but it isn't selectable.

### Dependency-Track Frontend Version

4.8.1

### Browser

Google Chrome

### Browser Version

115.0.5790.102

### Operating System

Windows

### Checklist

- [X] I have read and understand the [contributing guidelines](https://github.com/DependencyTrack/dependency-track/blob/master/CONTRIBUTING.md#filing-issues)
- [X] I have checked the [existing issues](https://github.com/DependencyTrack/frontend/issues) for whether this defect was already reported

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.