If database has 0 tables, Wappler will show an error in console

Wappler Version : 4.9.1
Operating System : MacOS
Server Model: NodeJS
Database Type: PostgreSQL
Hosting Type: Docker

Expected behavior

No error when creating a table for the first time

Actual behavior

When the database has 0 tables and you create the first one, Wappler shows an error in the console. You have to restart Wappler to get it working right (after having the first migration run to create the first table)

How to reproduce

Start with empty project, PostgreSQL, no sample data. Create first table with default column “id”, you will see an error in the console

Could you also paste a screenshot of the error?

It was an error related to being “undefined”. I’d have to setup a new empty project to grab the error again, probably won’t get back with a screenshot for a while (too busy atm, else I’d do it)