-
Notifications
You must be signed in to change notification settings - Fork 42
Milestone
Description
Describe the bug
Related to #7416
There is still an instance in the code that could possibly crash if there is no attachment column, specifically in attachment datasets.
specify7/specifyweb/frontend/js_src/lib/components/WorkBench/WbAttachmentsPreview.tsx
Line 176 in 97ee7e8
| const attachmentColumnIndex = hot.toVisualColumn(getAttachmentsColumn(dataset)); |
Realistically this shouldn't happen, but there should be a safe check to prevent the original issue from reoccuring.
To Reproduce
Haven't caused this, but hypothetically:
- Import Attachments
- Delete the attachments column
- See that validation silently fails.
Expected behavior
Validation should not silently fail. The attachment column check should not crash if the column isn't there.
Screenshots
If applicable, add screenshots to help explain your problem.
Crash Report
See: #7416
Metadata
Metadata
Assignees
Labels
No labels