Fix ERD delete crash on stale foreign key column. #8318 (#10042)
removeOneToManyLink looked up a column by the FK's stored local_column name and read .attnum unconditionally. After a column rename the stored name no longer matches, so _.find returned undefined and .attnum threw, blocking deletion of the table/link. Use optional chaining so a stale FK simply doesn't match the link being removed and deletion proceeds.
D
Dave Page committed
2a34eda5bcc336c36e73d981d880c06dd6470474
Parent: ba60f0a
Committed by GitHub <noreply@github.com>
on 6/12/2026, 5:20:50 PM