Adding a second database connection causes incorrect connection file creation

======== TEMPLATE BUG FORM ========

Wappler Version : 6.8.0
Operating System : Windows 11
Server Model: PHP
Database Type: MySQL
Hosting Type: Custom

Expected behavior

What do you think should happen?

The connection file should be created with meta of {} not undefined

Actual behavior

File is created with "undefined"

How to reproduce

Create a new Database connection in the db manager that uses Direct Connection.