From 3d177defd78db011f523ae9d1435e2497cc1dffa Mon Sep 17 00:00:00 2001 From: Danylo Strelets Date: Tue, 16 Jul 2024 18:21:18 +0300 Subject: [PATCH] fix failed test --- forward_engineering/ddlProvider.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/forward_engineering/ddlProvider.js b/forward_engineering/ddlProvider.js index 95624e3..c3e039d 100644 --- a/forward_engineering/ddlProvider.js +++ b/forward_engineering/ddlProvider.js @@ -425,7 +425,7 @@ module.exports = (baseProvider, options, app) => { }, }[tableOptions.format] || {}, ), - properties: jsonSchema.properties, + properties: jsonSchema?.properties || {}, }; }, @@ -462,7 +462,7 @@ module.exports = (baseProvider, options, app) => { enableRefresh: detailsTab.enableRefresh, maxStaleness: detailsTab.maxStaleness, allowNonIncrementalDefinition: detailsTab.allowNonIncrementalDefinition, - properties: jsonSchema.properties, + properties: jsonSchema?.properties || {}, }; },