fix(ui): handle undefined databases and customOptions in formatConfig
Summary
Fixes the Configuration page crash (infinite loading spinner) caused by TypeError: can't convert undefined to object.
formatDatabases()andformatDumpCustomOptions()guard againstnullbut receiveundefinedwhen the/admin/configresponse omitsdatabasesorcustomOptionsfields- This happens on virtually every fresh deployment — the default config template (
config.example.logical_generic.yml) hasdatabasescommented out, so the backend projection omits it - Replace incorrect
as Type | nulltype assertions with?? null(nullish coalescing) to convertundefinedtonull
Closes #697 (closed)