-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Delete study measurements instead of all measurements #4882
Conversation
✅ Deploy Preview for ohif-dev ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
❌ Deploy Preview for ohif-platform-docs failed. Why did it fail? →
|
Viewers
|
Project |
Viewers
|
Branch Review |
fix/delete-filtered-measurements
|
Run status |
|
Run duration | 02m 15s |
Commit |
|
Committer | Bill Wallace |
View all properties for this run ↗︎ |
Test results | |
---|---|
|
0
|
|
0
|
|
2
|
|
0
|
|
43
|
View all changes introduced in this branch ↗︎ |
@@ -26,13 +28,19 @@ export const groupByStudy = (items, grouping, childProps) => { | |||
const studyUID = getItemStudyInstanceUID(item); | |||
if (!groups.has(studyUID)) { | |||
const items = []; | |||
const filter = MeasurementFilters.filterAnd( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The study measurements filter needs to define the filter object so that saving and other operations apply on a per study basis.
<Cross2Icon className="text-primary h-4 w-4" /> | ||
<span className="sr-only">Close</span> | ||
</DialogPrimitive.Close> | ||
{!unstyled && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The unstyled dialogs should not show the close icon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
Context
For multiple study measurements, the delete function was deleting all measurements, not just the single study measurements.
Changes & Results
Create a filter argument to delete just the specified measurements (also applies to save/load etc)
Testing
Checklist
PR
semantic-release format and guidelines.
Code
etc.)
Public Documentation Updates
additions or removals.
Tested Environment