Something Went Wrong Displayed when try to add a new column in the table
Please note that security bugs or issues should be reported to [email protected].
Describe the bug
The ‘Something Went Wrong’ screen displays in the window when I try to add a new column in the table.
To Reproduce
Steps to reproduce the behavior:
- Go to 'Schena'->'Table'
- Right Click one of the table, select 'Properties'
- Go to 'Columns' Tag
- Click '+' Button
- 'Something Went Wrong' message displayed!
Expected behavior
A new empty column should be displayed and let me fill the detail of the column.
Error message
Something Went Wrong.
Screenshots
Desktop (please complete the following information):
- OS: Windows-11-10.0.26300-SP0
- pgAdmin version: 9.19
- Mode: Desktop
- Package type: Winget
Additional context
Null
This looks like the same crash as #10700. In 9.19, adding a row to the table's Columns grid also runs the foreign key depChange, which falls through to the ADD_ROW branch meant for the foreign key's own column mappings and reads fkHeaderSchema.origData.references before the foreign key editor has been opened. That throws TypeError: Cannot read properties of undefined (reading 'references'), and the error boundary shows "Something went wrong." It happens on tables that have at least one foreign key.
It was fixed on master in 2753415 (#10735), which was merged after 9.19 was released, so it should be resolved in 9.20.
Thanks for the report. This is the same crash as #10700, fixed on master in 27534155d (#10735) after 9.19 was released, so it will be resolved in 9.20.